Home
last modified time | relevance | path

Searched refs:PP_HTONL (Results 1 – 25 of 38) sorted by relevance

12

/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dip6_addr.h154 #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 Dip_addr.h83 #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 Dip4_addr.h120 #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 Ddef.h81 #define PP_HTONL(x) (x) macro
99 #define PP_HTONL(x) ((((x) & 0x000000ffUL) << 24) | \
103 #define PP_NTOHL(x) PP_HTONL(x)
A Dinet.h84 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}}
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dip6_addr.h203 #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 Dip4_addr.h104 #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 Dip_addr.h83 #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 Ddef.h92 #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 Dinet.h84 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}}
/components/net/lwip/lwip-2.1.2/src/netif/
A Dlowpan6_common.c81 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 Dip_addr.h172 #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 Dlowpan6.c174 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 Ddef.h90 #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 Dtest_ip6.c249 …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 Ddhcp_server_raw.c355 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 Dnetdev_ipaddr.h75 #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 Dlwiperf.c261 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 Dlwiperf.c289 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 Ddef.c92 return (u32_t)PP_HTONL(n); in lwip_htonl()
/components/net/lwip/lwip-2.1.2/src/core/
A Ddef.c92 return PP_HTONL(n); in lwip_htonl()
/components/net/lwip/lwip-2.1.2/test/unit/api/
A Dtest_sockets.c130 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 Dnetbiosns.c298 resp->resp_name.ttl = PP_HTONL(NETBIOS_NAME_TTL); in netbiosns_recv()
/components/net/lwip/lwip-2.0.3/src/core/ipv4/
A Ddhcp.c1086 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 Ddhcp.c977 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()

Completed in 42 milliseconds

12