Searched refs:ntohs (Results 1 – 9 of 9) sorted by relevance
10 #undef ntohs13 ntohs(u_int16_t x) in ntohs() function
196 uint16_t ntohs(uint16_t) __pure2;202 #define ntohs(x) __swap16(x) macro240 #define ntohs(x) (x) macro253 #define NTOHS(x) (x) = ntohs((u_int16_t)(x))
184 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()
272 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
292 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()
225 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
1343 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()
219 ancount = ntohs(hp->ancount); in getanswer()220 qdcount = ntohs(hp->qdcount); in getanswer()
379 upstream-openbsd/lib/libc/net/ntohs.c \