| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | ip6_addr.h | 154 #define ip6_addr_isglobal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xe0000000UL)) == PP_HTONL(0x200… 156 #define ip6_addr_islinklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0x… 158 #define ip6_addr_issitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0x… 160 #define ip6_addr_isuniquelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xfe000000UL)) == PP_HTONL(… 164 #define ip6_addr_ismulticast(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff000000UL)) == PP_HTONL(0x… 179 …6_addr_ismulticast_iflocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 180 …addr_ismulticast_linklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 182 …addr_ismulticast_sitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 183 …_addr_ismulticast_orglocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 184 …p6_addr_ismulticast_global(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… [all …]
|
| A D | ip_addr.h | 83 #define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) 87 #define IPADDR6_INIT_HOST(a, b, c, d) { { { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL(d) } … 126 …e IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTO… 227 (ip6addr)->addr[2] = PP_HTONL(0x0000FFFFUL); \ 246 #define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) 292 #define IPADDR6_INIT_HOST(a, b, c, d) { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL… 303 …ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTO…
|
| A D | ip4_addr.h | 120 #define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = PP_HTONL(LWIP_MAKEU32(a,b,c,d)) 140 #define ip4_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) 142 #define ip4_addr_isloopback(ipaddr) (((ipaddr)->addr & PP_HTONL(IP_CLASSA_NET)) == PP_HTONL(((u3… 179 #define ip4_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe000000… 181 #define ip4_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe000…
|
| A D | def.h | 81 #define PP_HTONL(x) (x) macro 99 #define PP_HTONL(x) ((((x) & 0x000000ffUL) << 24) | \ 103 #define PP_NTOHL(x) PP_HTONL(x)
|
| A D | inet.h | 84 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}}
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | ip6_addr.h | 203 #define ip6_addr_isglobal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xe0000000UL)) == PP_HTONL(0x200… 205 #define ip6_addr_islinklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0x… 207 #define ip6_addr_issitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xffc00000UL)) == PP_HTONL(0x… 209 #define ip6_addr_isuniquelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xfe000000UL)) == PP_HTONL(… 213 #define ip6_addr_ismulticast(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff000000UL)) == PP_HTONL(0x… 228 …6_addr_ismulticast_iflocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 229 …addr_ismulticast_linklocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 231 …addr_ismulticast_sitelocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 232 …_addr_ismulticast_orglocal(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… 233 …p6_addr_ismulticast_global(ip6addr) (((ip6addr)->addr[0] & PP_HTONL(0xff8f0000UL)) == PP_HTONL(0xf… [all …]
|
| A D | ip4_addr.h | 104 #define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = PP_HTONL(LWIP_MAKEU32(a,b,c,d)) 117 #define ip4_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) 119 #define ip4_addr_isloopback(ipaddr) (((ipaddr)->addr & PP_HTONL(IP_CLASSA_NET)) == PP_HTONL(((u3… 156 #define ip4_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe000000… 158 #define ip4_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe000…
|
| A D | ip_addr.h | 83 #define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) 88 #define IPADDR6_INIT_HOST(a, b, c, d) { { { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL(d) } … 129 …e IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTO… 249 (ip6addr)->addr[2] = PP_HTONL(0x0000FFFFUL); \ 272 #define IPADDR4_INIT_BYTES(a,b,c,d) IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d))) 320 #define IPADDR6_INIT_HOST(a, b, c, d) { { PP_HTONL(a), PP_HTONL(b), PP_HTONL(c), PP_HTONL… 332 …ADDR6_HOST(ipaddr,i0,i1,i2,i3) IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTO…
|
| A D | def.h | 92 #define PP_HTONL(x) ((u32_t)(x)) macro 110 #define PP_HTONL(x) ((((x) & (u32_t)0x000000ffUL) << 24) | \ 114 #define PP_NTOHL(x) PP_HTONL(x)
|
| A D | inet.h | 84 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}}
|
| /components/net/lwip/lwip-2.1.2/src/netif/ |
| A D | lowpan6_common.c | 81 if ((ip6addr->addr[2] == PP_HTONL(0x000000ffUL)) && in lowpan6_get_address_mode() 95 if ((ip6addr->addr[0] == PP_HTONL(0xff020000)) && in lowpan6_get_address_mode_mc() 100 } else if (((ip6addr->addr[0] & PP_HTONL(0xff00ffff)) == PP_HTONL(0xff000000)) && in lowpan6_get_address_mode_mc() 509 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress_hdr() 517 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress_hdr() 519 ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); in lowpan6_decompress_hdr() 527 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress_hdr() 581 ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); in lowpan6_decompress_hdr() 636 ip6hdr->dest.addr[0] = PP_HTONL(0xff020000UL); in lowpan6_decompress_hdr() 664 ip6hdr->dest.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress_hdr() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/include/ipv4/lwip/ |
| A D | ip_addr.h | 172 #define ip_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) 208 #define ip_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe0000000… 210 #define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000…
|
| /components/net/lwip/lwip-2.0.3/src/netif/ |
| A D | lowpan6.c | 174 if ((ip6addr->addr[2] == PP_HTONL(0x000000ffUL)) && in lowpan6_get_address_mode() 186 if ((ip6addr->addr[0] == PP_HTONL(0xff020000)) && in lowpan6_get_address_mode_mc() 191 } else if (((ip6addr->addr[0] & PP_HTONL(0xff00ffff)) == PP_HTONL(0xff000000)) && in lowpan6_get_address_mode_mc() 752 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress() 757 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress() 759 ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); in lowpan6_decompress() 764 ip6hdr->src.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress() 806 ip6hdr->src.addr[2] = PP_HTONL(0x000000ffUL); in lowpan6_decompress() 847 ip6hdr->dest.addr[0] = PP_HTONL(0xff020000UL); in lowpan6_decompress() 873 ip6hdr->dest.addr[0] = PP_HTONL(0xfe800000UL); in lowpan6_decompress() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | def.h | 90 #define PP_HTONL(x) (x) macro 110 #define PP_HTONL(x) ((((x) & 0xff) << 24) | \ 114 #define PP_NTOHL(x) PP_HTONL(x)
|
| /components/net/lwip/lwip-2.1.2/test/unit/ip6/ |
| A D | test_ip6.c | 249 …const u32_t expected_ip6_addr_1[4] = {PP_HTONL(0xfe800000), 0, PP_HTONL(0xb2a1a2ff), PP_HTONL(0xfe… in START_TEST() 250 …const u32_t expected_ip6_addr_2[4] = {PP_HTONL(0xfe800000), 0, PP_HTONL(0x0000b0a1), PP_HTONL(0xa2… in START_TEST()
|
| /components/net/lwip-dhcpd/ |
| A D | dhcp_server_raw.c | 355 if (msg->cookie != PP_HTONL(DHCP_MAGIC_COOKIE)) in dhcp_server_recv() 387 msg->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); in dhcp_server_recv() 405 tmp = PP_HTONL(DHCP_DEFAULT_LIVE_TIME); in dhcp_server_recv() 464 msg->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); in dhcp_server_recv() 482 tmp = PP_HTONL(DHCP_DEFAULT_LIVE_TIME); in dhcp_server_recv() 533 msg->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); in dhcp_server_recv()
|
| /components/net/netdev/include/ |
| A D | netdev_ipaddr.h | 75 #define PP_HTONL(x) ((((x) & 0x000000ffUL) << 24) | \ macro 79 #define PP_NTOHL(x) PP_HTONL(x) 83 #define htonl(x) (uint32_t)PP_HTONL(x) 165 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}}
|
| /components/net/lwip/lwip-2.0.3/src/apps/lwiperf/ |
| A D | lwiperf.c | 261 if (conn->settings.amount & PP_HTONL(0x80000000)) { in lwiperf_tcp_client_send_more() 423 if ((conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST|LWIPERF_FLAGS_ANSWER_NOW)) == in lwiperf_tcp_recv() 424 PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv() 449 if ((conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST|LWIPERF_FLAGS_ANSWER_NOW)) == in lwiperf_tcp_recv() 450 PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST|LWIPERF_FLAGS_ANSWER_NOW)) { in lwiperf_tcp_recv()
|
| /components/net/lwip/lwip-2.1.2/src/apps/lwiperf/ |
| A D | lwiperf.c | 289 if (conn->settings.amount & PP_HTONL(0x80000000)) { in lwiperf_tcp_client_send_more() 473 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv() 474 if ((conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_NOW)) == 0) { in lwiperf_tcp_recv() 500 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv() 501 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_NOW)) { in lwiperf_tcp_recv() 512 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv()
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | def.c | 92 return (u32_t)PP_HTONL(n); in lwip_htonl()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | def.c | 92 return PP_HTONL(n); in lwip_htonl()
|
| /components/net/lwip/lwip-2.1.2/test/unit/api/ |
| A D | test_sockets.c | 130 addr4->sin_addr.s_addr = PP_HTONL(INADDR_LOOPBACK); in test_sockets_allfunctions_basic_domain() 239 addr->sin_addr.s_addr = PP_HTONL(INADDR_LOOPBACK); in test_sockets_init_loopback_addr() 609 fail_unless(pktinfo->ipi_addr.s_addr == PP_HTONL(INADDR_LOOPBACK)); in test_sockets_msgapi_cmsg() 707 sa_listen.sin_addr.s_addr = PP_HTONL(INADDR_LOOPBACK); in START_TEST()
|
| /components/net/lwip/lwip-2.0.3/src/apps/netbiosns/ |
| A D | netbiosns.c | 298 resp->resp_name.ttl = PP_HTONL(NETBIOS_NAME_TTL); in netbiosns_recv()
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | dhcp.c | 1086 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL)); in dhcp_bind() 1088 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL)); in dhcp_bind() 1090 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL)); in dhcp_bind() 1100 ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL)); in dhcp_bind() 1881 dhcp->msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); in dhcp_create_msg()
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | dhcp.c | 977 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL)); in dhcp_bind() 979 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL)); in dhcp_bind() 981 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL)); in dhcp_bind() 991 ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL)); in dhcp_bind() 1717 dhcp->msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); in dhcp_create_msg()
|