Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/net/
Dntohs.c10 #undef ntohs
13 ntohs(u_int16_t x) in ntohs() function
/bionic/libc/include/sys/
Dendian.h55 uint16_t ntohs(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21);
61 #define ntohs(x) __swap16(x) macro
74 #define NTOHS(x) (x) = ntohs(__BIONIC_CAST(static_cast,u_int16_t,(x)))
/bionic/libc/dns/resolv/
Dres_query.c184 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
189 ntohs(hp->ancount), in res_nquery()
190 ntohs(hp->nscount), in res_nquery()
191 ntohs(hp->arcount)); in res_nquery()
Dres_mkquery.c294 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
Dres_send.c280 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount); in res_nameinquery()
317 int qdcount = ntohs(((const HEADER*)(const void *)buf1)->qdcount); in res_queriesmatch()
330 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount)) in res_queriesmatch()
/bionic/tests/
Dnetdb_test.cpp37 ASSERT_EQ(25U, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST()
76 ASSERT_EQ(25, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST()
341 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
348 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
359 ASSERT_EQ(7, ntohs(s->s_port)); in TEST()
368 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
375 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
386 ASSERT_EQ(7, ntohs(s->s_port)); in TEST()
Dnetinet_in_test.cpp72 ASSERT_EQ(le16, (ntohs)(be16)); in TEST()
Dendian_test.cpp55 ASSERT_EQ(le16, ntohs(be16)); in TEST()
/bionic/tests/headers/posix/
Darpa_inet_h.c44 FUNCTION(ntohs, uint16_t (*f)(uint16_t)); in arpa_inet_h()
Dnetinet_in_h.c86 FUNCTION(ntohs, uint16_t (*f)(uint16_t)); in netinet_in_h()
/bionic/libc/dns/net/
Dgetnameinfo.c232 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
Dgetaddrinfo.c1350 ancount = ntohs(hp->ancount); in getanswer()
1351 qdcount = ntohs(hp->qdcount); in getanswer()
2224 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2241 ntohs(hp->ancount)); in res_queryN()
2246 ancount += ntohs(hp->ancount); in res_queryN()
Dgethnamaddr.c259 ancount = ntohs(hp->ancount); in getanswer()
260 qdcount = ntohs(hp->qdcount); in getanswer()
/bionic/libc/tools/
Dposix-2013.txt610 ntohs
/bionic/tools/versioner/platforms/
Dlibc.map.txt707 ntohs; # introduced=21
/bionic/libc/
Dlibc.map.txt707 ntohs; # introduced=21
DAndroid.bp509 "upstream-openbsd/lib/libc/net/ntohs.c",