Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 9 of 9) sorted by relevance

/resolv/
A Dmapv4v6hostent.h61 map_v4v6_hostent (struct hostent *hp, char **bpp, int *lenp) in map_v4v6_hostent() argument
65 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in map_v4v6_hostent()
67 hp->h_addrtype = AF_INET6; in map_v4v6_hostent()
68 hp->h_length = IN6ADDRSZ; in map_v4v6_hostent()
69 for (ap = hp->h_addr_list; *ap; ap++) in map_v4v6_hostent()
A Dres_mkquery.c103 HEADER *hp; in __res_context_mkquery() local
115 hp = (HEADER *) buf; in __res_context_mkquery()
119 hp->id = random_bits (); in __res_context_mkquery()
120 hp->opcode = op; in __res_context_mkquery()
122 hp->ad = 1; in __res_context_mkquery()
123 hp->rd = (ctx->resp->options & RES_RECURSE) != 0; in __res_context_mkquery()
124 hp->rcode = NOERROR; in __res_context_mkquery()
153 hp->qdcount = htons (1); in __res_context_mkquery()
169 hp->arcount = htons (1); in __res_context_mkquery()
253 HEADER *hp = (HEADER *) buf; in __res_nopt() local
[all …]
A Dcompat-gethnamaddr.c143 const HEADER *hp; in getanswer() local
430 return hp; in libresolv_hidden_proto()
435 return hp; in libresolv_hidden_proto()
578 return hp; in res_gethostbyname2()
662 if (!hp) in res_gethostbyaddr_context()
675 return (hp); in res_gethostbyaddr_context()
689 return hp; in res_gethostbyaddr()
788 if (hp) in _gethtbyname()
789 return (hp); in _gethtbyname()
856 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in map_v4v6_hostent()
[all …]
A Dres_hconf.c355 _res_hconf_reorder_addrs (struct hostent *hp) in _res_hconf_reorder_addrs() argument
374 if (hp->h_addrtype != AF_INET) in _res_hconf_reorder_addrs()
505 for (i = 0; hp->h_addr_list[i]; ++i) in _res_hconf_reorder_addrs()
507 struct in_addr *haddr = (struct in_addr *) hp->h_addr_list[i]; in _res_hconf_reorder_addrs()
518 tmp = hp->h_addr_list[i]; in _res_hconf_reorder_addrs()
519 hp->h_addr_list[i] = hp->h_addr_list[0]; in _res_hconf_reorder_addrs()
520 hp->h_addr_list[0] = tmp; in _res_hconf_reorder_addrs()
560 _res_hconf_trim_domains (struct hostent *hp) in _res_hconf_trim_domains() argument
567 _res_hconf_trim_domain (hp->h_name); in _res_hconf_trim_domains()
568 for (i = 0; hp->h_aliases[i]; ++i) in _res_hconf_trim_domains()
[all …]
A Dres_query.c115 HEADER *hp = (HEADER *) answer; in __res_context_query() local
220 hp = (HEADER *) *answerp; in __res_context_query()
227 hp2 = hp; in __res_context_query()
234 hp = hp2; in __res_context_query()
241 if ((hp->rcode != NOERROR || ntohs(hp->ancount) == 0) in __res_context_query()
243 switch (hp->rcode == NOERROR ? hp2->rcode : hp->rcode) { in __res_context_query()
245 if ((hp->rcode == NOERROR && ntohs (hp->ancount) != 0) in __res_context_query()
255 if (ntohs (hp->ancount) != 0 in __res_context_query()
264 if ((hp->rcode == NOERROR && ntohs (hp->ancount) != 0) in __res_context_query()
341 HEADER *hp = (HEADER *) answer; in __res_context_search() local
[all …]
A Dres_hconf.h50 extern void _res_hconf_trim_domains (struct hostent *hp);
51 extern void _res_hconf_reorder_addrs (struct hostent *hp);
A Dres_send.c563 const HEADER *hp = (HEADER *) buf; in send_vc() local
774 if ((recvresp1 || hp->id != anhp->id) in send_vc()
779 if (recvresp1 == 0 && hp->id == anhp->id) in send_vc()
928 const HEADER *hp = (HEADER *) buf; in send_dg() local
1198 && anhp->id == hp->id in send_dg()
A Dres_debug.c819 uint8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ in loc_aton() local
891 hp = precsize_aton(&cp); in loc_aton()
909 *bcp++ = hp; in loc_aton()
/resolv/nss_dns/
A Ddns-host.c607 char *hp; in libc_hidden_def() local
613 hp = ap[j]; in libc_hidden_def()
615 ap[j+1] = hp; in libc_hidden_def()
634 const HEADER *hp; in getanswer_r() local
680 hp = &answer->hdr; in getanswer_r()
681 ancount = ntohs (hp->ancount); in getanswer_r()
682 qdcount = ntohs (hp->qdcount); in getanswer_r()
1022 const HEADER *hp = &answer->hdr; in gaih_getanswer_slice() local
1023 int ancount = ntohs (hp->ancount); in gaih_getanswer_slice()
1024 int qdcount = ntohs (hp->qdcount); in gaih_getanswer_slice()

Completed in 54 milliseconds