Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 9 of 9) 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.h196 uint16_t ntohs(uint16_t) __pure2;
202 #define ntohs(x) __swap16(x) macro
240 #define ntohs(x) (x) macro
253 #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.c292 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount); in res_nameinquery()
329 int qdcount = ntohs(((const HEADER*)(const void *)buf1)->qdcount); in res_queriesmatch()
342 if (qdcount != ntohs(((const HEADER*)(const void *)buf2)->qdcount)) in res_queriesmatch()
/bionic/libc/dns/net/
Dgetnameinfo.c225 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
Dgetaddrinfo.c1343 ancount = ntohs(hp->ancount); in getanswer()
1344 qdcount = ntohs(hp->qdcount); in getanswer()
2205 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2210 ntohs(hp->ancount)); in res_queryN()
2215 ancount += ntohs(hp->ancount); in res_queryN()
/bionic/libc/dns/
Dgethnamaddr.c219 ancount = ntohs(hp->ancount); in getanswer()
220 qdcount = ntohs(hp->qdcount); in getanswer()
/bionic/libc/
DAndroid.mk379 upstream-openbsd/lib/libc/net/ntohs.c \