| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | magic.c | 113 #ifdef LWIP_RAND in magic_churnrand() 119 #ifdef LWIP_RAND in magic_churnrand() 120 sys_data.rand = LWIP_RAND(); in magic_churnrand() 198 #ifndef LWIP_RAND 224 #ifndef LWIP_RAND in magic_init() 240 #ifndef LWIP_RAND in magic_randomize() 248 #ifndef LWIP_RAND in magic_randomize() 264 #ifdef LWIP_RAND in magic() 265 return LWIP_RAND() + magic_randomseed; in magic()
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | magic.c | 113 #ifdef LWIP_RAND in magic_churnrand() 119 #ifdef LWIP_RAND in magic_churnrand() 120 sys_data.rand = LWIP_RAND(); in magic_churnrand() 198 #ifndef LWIP_RAND 224 #ifndef LWIP_RAND in magic_init() 240 #ifndef LWIP_RAND in magic_randomize() 248 #ifndef LWIP_RAND in magic_randomize() 264 #ifdef LWIP_RAND in magic() 265 return LWIP_RAND() + magic_randomseed; in magic()
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmpv3.c | 106 #ifdef LWIP_RAND /* Based on RFC3826 */ in snmpv3_build_priv_param() 113 priv1 = LWIP_RAND(); in snmpv3_build_priv_param() 114 priv2 = LWIP_RAND(); in snmpv3_build_priv_param()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmpv3.c | 106 #ifdef LWIP_RAND /* Based on RFC3826 */ in snmpv3_build_priv_param() 113 priv1 = LWIP_RAND(); in snmpv3_build_priv_param() 114 priv2 = LWIP_RAND(); in snmpv3_build_priv_param()
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/apps/ |
| A D | sntp_opts.h | 139 #ifdef LWIP_RAND 150 #define SNTP_STARTUP_DELAY_FUNC (LWIP_RAND() % 5000)
|
| /components/net/lwip/lwip-2.1.2/test/sockets/ |
| A D | sockets_stresstest.c | 113 u8_t rnd = (u8_t)LWIP_RAND(); in fill_test_data() 341 u32_t random_value = LWIP_RAND(); in sockets_stresstest_rand_mode() 449 sys_msleep(1000 + (LWIP_RAND() % 1000)); in sockets_stresstest_conn_client() 456 if (LWIP_RAND() & 1) { in sockets_stresstest_conn_client() 476 int timeout_ms = LWIP_RAND() % TEST_MAX_RXWAIT_MS; in sockets_stresstest_conn_client() 487 size_t send_len = (LWIP_RAND() % (sizeof(txbuf) - 4)) + 4; in sockets_stresstest_conn_client() 522 int timeout_ms = LWIP_RAND() % TEST_MAX_RXWAIT_MS; in sockets_stresstest_conn_server() 537 size_t send_len = (LWIP_RAND() % (sizeof(txbuf) - 4)) + 4; in sockets_stresstest_conn_server()
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | arch.h | 70 #define LWIP_RAND() ((u32_t)rand()) macro
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv6/ |
| A D | mld6.c | 498 #ifdef LWIP_RAND in mld6_delayed_report() 500 maxresp = LWIP_RAND() % maxresp; in mld6_delayed_report()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv6/ |
| A D | mld6.c | 536 #ifdef LWIP_RAND in mld6_delayed_report() 538 maxresp = (u16_t)(LWIP_RAND() % maxresp); in mld6_delayed_report()
|
| A D | dhcp6.c | 397 dhcp6->xid = LWIP_RAND() & 0xFFFFFF; in dhcp6_create_msg()
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | init.c | 175 #if LWIP_IGMP && !defined(LWIP_RAND)
|
| A D | udp.c | 88 #if LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS && defined(LWIP_RAND) in udp_init() 89 udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in udp_init()
|
| A D | dhcp.c | 1649 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1675 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1676 xid = LWIP_RAND(); in dhcp_create_msg()
|
| A D | tcp.c | 132 #if LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS && defined(LWIP_RAND) in tcp_init() 133 tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in tcp_init()
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | arch.h | 72 #define LWIP_RAND() ((u32_t)rand()) macro
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | igmp.c | 694 #ifdef LWIP_RAND in igmp_start_timer() 695 group->timer = (u16_t)(max_time > 2 ? (LWIP_RAND() % max_time) : 1); in igmp_start_timer()
|
| A D | dhcp.c | 1895 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1921 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1922 xid = LWIP_RAND(); in dhcp_create_msg()
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | igmp.c | 693 #ifdef LWIP_RAND in igmp_start_timer() 694 group->timer = max_time > 2 ? (LWIP_RAND() % max_time) : 1; in igmp_start_timer()
|
| A D | dhcp.c | 1810 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1838 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) in dhcp_create_msg() 1839 xid = LWIP_RAND(); in dhcp_create_msg()
|
| /components/net/lwip/port/ |
| A D | lwipopts.h | 36 #define LWIP_RAND rand macro
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | udp.c | 89 #if LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS && defined(LWIP_RAND) in udp_init() 90 udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in udp_init()
|
| A D | tcp.c | 147 #if LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS && defined(LWIP_RAND) in tcp_init() 148 tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in tcp_init()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | udp.c | 89 #ifdef LWIP_RAND in udp_init() 90 udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); in udp_init()
|
| /components/net/lwip/lwip-1.4.1/ |
| A D | UPGRADING | 100 * Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | igmp.c | 705 group->timer = (LWIP_RAND() % (max_time - 1)) + 1; in igmp_start_timer()
|