Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 22 of 22) 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) __pure2;
61 #define ntohs(x) __swap16(x) macro
74 #define NTOHS(x) (x) = ntohs((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.c272 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
Dres_send.c290 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount); in res_nameinquery()
327 int qdcount = ntohs(((const HEADER*)(const void *)buf1)->qdcount); in res_queriesmatch()
340 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()
303 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
309 ASSERT_EQ(25, ntohs(s->s_port)); in TEST()
319 ASSERT_EQ(7, ntohs(s->s_port)); in TEST()
/bionic/libc/dns/net/
Dgetnameinfo.c225 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
Dgetaddrinfo.c1334 ancount = ntohs(hp->ancount); in getanswer()
1335 qdcount = ntohs(hp->qdcount); in getanswer()
2197 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2202 ntohs(hp->ancount)); in res_queryN()
2207 ancount += ntohs(hp->ancount); in res_queryN()
Dgethnamaddr.c244 ancount = ntohs(hp->ancount); in getanswer()
245 qdcount = ntohs(hp->qdcount); in getanswer()
/bionic/libc/
Dlibc.mips64.map636 ntohs;
Dlibc.x86_64.map636 ntohs;
Dlibc.arm64.map636 ntohs;
Dlibc.x86.brillo.map686 ntohs;
Dlibc.mips.brillo.map688 ntohs;
Dlibc.arm.brillo.map690 ntohs;
Dlibc.mips.map688 ntohs;
Dlibc.x86.map686 ntohs;
Dlibc.arm.map690 ntohs;
Dlibc.map.txt714 ntohs;
DAndroid.mk442 upstream-openbsd/lib/libc/net/ntohs.c \
DAndroid.bp462 "upstream-openbsd/lib/libc/net/ntohs.c",
/bionic/libc/tools/
Dposix-2013.txt610 ntohs