Searched refs:htons (Results 1 – 17 of 17) sorted by relevance
/bionic/libc/dns/resolv/ |
D | res_mkquery.c | 145 hp->id = htons(res_randomid()); in res_nmkquery() 172 hp->qdcount = htons(1); in res_nmkquery() 193 hp->arcount = htons(1); in res_nmkquery() 215 hp->ancount = htons(1); in res_nmkquery() 294 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
|
D | res_init.c | 209 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit() 221 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT); in __res_vinit()
|
D | res_send.c | 190 u.sin.sin_port = htons(port); in random_bind() 192 u.sin6.sin6_port = htons(port); in random_bind()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | htons.c | 10 #undef htons 13 htons(u_int16_t x) in htons() function
|
/bionic/libc/include/sys/ |
D | endian.h | 53 uint16_t htons(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21); 59 #define htons(x) __swap16(x) macro 76 #define HTONS(x) (x) = htons(__BIONIC_CAST(static_cast,u_int16_t,(x)))
|
/bionic/tests/ |
D | netdb_test.cpp | 365 servent* s = getservbyport(htons(25), nullptr); in TEST() 372 s = getservbyport(htons(25), "tcp"); in TEST() 379 s = getservbyport(htons(25), "udp"); in TEST() 383 s = getservbyport(htons(7), "udp"); in TEST() 445 ASSERT_TRUE(getservbyport(htons(25), "tcp") != nullptr); in TEST()
|
D | netinet_in_test.cpp | 49 ASSERT_EQ(be16, (htons)(le16)); in TEST()
|
D | endian_test.cpp | 45 ASSERT_EQ(be16, htons(le16)); in TEST()
|
/bionic/tests/headers/posix/ |
D | arpa_inet_h.c | 42 FUNCTION(htons, uint16_t (*f)(uint16_t)); in arpa_inet_h()
|
D | netinet_in_h.c | 84 FUNCTION(htons, uint16_t (*f)(uint16_t)); in netinet_in_h()
|
/bionic/libc/bionic/ |
D | netinet_in.cpp | 63 sin->sin_port = htons(port); in bindresvport()
|
/bionic/libc/dns/net/ |
D | getservent.c | 88 rs->servent.s_port = htons(port); in getservent_r()
|
D | getaddrinfo.c | 1188 port = htons(port); in get_port()
|
/bionic/libc/tools/ |
D | posix-2013.txt | 394 htons
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 500 htons; # introduced=21
|
/bionic/libc/ |
D | libc.map.txt | 500 htons; # introduced=21
|
D | Android.bp | 478 "upstream-openbsd/lib/libc/net/htons.c",
|