Searched refs:htons (Results 1 – 19 of 19) sorted by relevance
10 #undef htons13 htons(u_int16_t x) in htons() function
145 hp->id = htons(res_randomid()); in res_nmkquery()171 hp->qdcount = htons(1); in res_nmkquery()192 hp->arcount = htons(1); in res_nmkquery()214 hp->ancount = htons(1); in res_nmkquery()271 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt()
209 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit()221 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT); in __res_vinit()
199 u.sin.sin_port = htons(port); in random_bind()201 u.sin6.sin6_port = htons(port); in random_bind()
53 uint16_t htons(uint16_t) __attribute_const__ __INTRODUCED_IN(21);59 #define htons(x) __swap16(x) macro76 #define HTONS(x) (x) = htons((u_int16_t)(x))
63 sin->sin_port = htons(port); in bindresvport()
49 ASSERT_EQ(be16, (htons)(le16)); in TEST()
45 ASSERT_EQ(be16, htons(le16)); in TEST()
103 rs->servent.s_port = htons(port); in getservent_r()
1183 port = htons(port); in get_port()
394 htons
425 htons; # introduced=21
495 htons; # introduced=21
493 htons; # introduced=21
499 htons; # introduced=21
497 htons; # introduced=21
414 "upstream-openbsd/lib/libc/net/htons.c",