Searched refs:ntohs (Results 1 – 22 of 22) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | ntohs.c | 10 #undef ntohs 13 ntohs(u_int16_t x) in ntohs() function
|
/bionic/libc/include/sys/ |
D | endian.h | 55 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/ |
D | res_query.c | 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()
|
D | res_mkquery.c | 272 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
|
D | res_send.c | 290 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/ |
D | netdb_test.cpp | 37 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/ |
D | getnameinfo.c | 225 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
|
D | getaddrinfo.c | 1334 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()
|
D | gethnamaddr.c | 244 ancount = ntohs(hp->ancount); in getanswer() 245 qdcount = ntohs(hp->qdcount); in getanswer()
|
/bionic/libc/ |
D | libc.mips64.map | 636 ntohs;
|
D | libc.x86_64.map | 636 ntohs;
|
D | libc.arm64.map | 636 ntohs;
|
D | libc.x86.brillo.map | 686 ntohs;
|
D | libc.mips.brillo.map | 688 ntohs;
|
D | libc.arm.brillo.map | 690 ntohs;
|
D | libc.mips.map | 688 ntohs;
|
D | libc.x86.map | 686 ntohs;
|
D | libc.arm.map | 690 ntohs;
|
D | libc.map.txt | 714 ntohs;
|
D | Android.mk | 442 upstream-openbsd/lib/libc/net/ntohs.c \
|
D | Android.bp | 462 "upstream-openbsd/lib/libc/net/ntohs.c",
|
/bionic/libc/tools/ |
D | posix-2013.txt | 610 ntohs
|