Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 21 of 21) sorted by relevance

/bionic/tests/
Darpa_inet_test.cpp22 ASSERT_EQ((htonl)(0x7f000001), inet_addr("127.0.0.1")); in TEST()
31 ASSERT_EQ((htonl)(0x7f010203), a.s_addr); in TEST()
36 ASSERT_EQ((htonl)(0x7f010002), a.s_addr); in TEST()
41 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
46 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
51 ASSERT_EQ((htonl)(0xff000001), a.s_addr); in TEST()
56 ASSERT_EQ((htonl)(0xff000001), a.s_addr); in TEST()
61 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
65 ASSERT_EQ((htonl)(036U), a.s_addr); in TEST()
109 in_addr a = { htonl(0x12345678) }; in TEST()
[all …]
Dnetinet_in_test.cpp53 ASSERT_EQ(be32, (htonl)(le32)); in TEST()
83 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in TEST()
84 mreq.imr_multiaddr.s_addr = htonl(INADDR_ANY); in TEST()
85 mreq.imr_sourceaddr.s_addr = htonl(INADDR_ANY); in TEST()
Dnetdb_test.cpp148 addr.sin_addr.s_addr = htonl(0x7f000001); in TEST()
240 in_addr addr = { htonl(0x7f000001) }; in TEST()
246 in_addr addr = { htonl(0x7f000001) }; in TEST()
291 in_addr addr = { htonl(0x7f000001) }; in TEST()
325 in_addr addr = { htonl(0xffffffff) }; in TEST()
Dendian_test.cpp46 ASSERT_EQ(be32, htonl(le32)); in TEST()
/bionic/libc/kernel/uapi/linux/
Digmp.h85 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
86 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
87 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
88 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
89 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
/bionic/libc/upstream-openbsd/lib/libc/net/
Dhtonl.c10 #undef htonl
13 htonl(u_int32_t x) in htonl() function
Dinet_makeaddr.c51 addr = htonl(addr); in inet_makeaddr()
/bionic/libc/include/sys/
Dendian.h52 uint32_t htonl(uint32_t __x) __attribute_const__ __INTRODUCED_IN(21);
58 #define htonl(x) __swap32(x) macro
75 #define HTONL(x) (x) = htonl(__BIONIC_CAST(static_cast,u_int32_t,(x)))
/bionic/tests/headers/posix/
Darpa_inet_h.c41 FUNCTION(htonl, uint32_t (*f)(uint32_t)); in arpa_inet_h()
Dnetinet_in_h.c83 FUNCTION(htonl, uint32_t (*f)(uint32_t)); in netinet_in_h()
/bionic/libc/bionic/
Darpa_inet.cpp70 if (addr != nullptr) addr->s_addr = htonl(result); in inet_aton()
/bionic/libc/dns/resolv/
Dres_init.c613 return (htonl(IN_CLASSA_NET)); in net_mask()
615 return (htonl(IN_CLASSB_NET)); in net_mask()
616 return (htonl(IN_CLASSC_NET)); in net_mask()
/bionic/libc/tools/
Dposix-2013.txt393 htonl
/bionic/libc/
Dlibc.arm64.map424 htonl; # introduced=21
Dlibc.x86_64.map424 htonl; # introduced=21
Dlibc.mips64.map424 htonl; # introduced=21
Dlibc.x86.map493 htonl; # introduced=21
Dlibc.mips.map495 htonl; # introduced=21
Dlibc.arm.map497 htonl; # introduced=21
Dlibc.map.txt499 htonl; # introduced=21
DAndroid.bp432 "upstream-openbsd/lib/libc/net/htonl.c",