Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 17 of 17) sorted by relevance

/bionic/libc/dns/resolv/
Dres_mkquery.c145 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()
Dres_init.c209 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit()
221 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT); in __res_vinit()
Dres_send.c190 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/
Dhtons.c10 #undef htons
13 htons(u_int16_t x) in htons() function
/bionic/libc/include/sys/
Dendian.h53 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/
Dnetdb_test.cpp365 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()
Dnetinet_in_test.cpp49 ASSERT_EQ(be16, (htons)(le16)); in TEST()
Dendian_test.cpp45 ASSERT_EQ(be16, htons(le16)); in TEST()
/bionic/tests/headers/posix/
Darpa_inet_h.c42 FUNCTION(htons, uint16_t (*f)(uint16_t)); in arpa_inet_h()
Dnetinet_in_h.c84 FUNCTION(htons, uint16_t (*f)(uint16_t)); in netinet_in_h()
/bionic/libc/bionic/
Dnetinet_in.cpp63 sin->sin_port = htons(port); in bindresvport()
/bionic/libc/dns/net/
Dgetservent.c88 rs->servent.s_port = htons(port); in getservent_r()
Dgetaddrinfo.c1188 port = htons(port); in get_port()
/bionic/libc/tools/
Dposix-2013.txt394 htons
/bionic/tools/versioner/platforms/
Dlibc.map.txt500 htons; # introduced=21
/bionic/libc/
Dlibc.map.txt500 htons; # introduced=21
DAndroid.bp478 "upstream-openbsd/lib/libc/net/htons.c",