• Home
  • Raw
  • Download

Lines Matching refs:hp

67     struct hostent *hp, hent;  in _hf_gethtbyname2()  local
93 info->hp->h_addrtype = af; in _hf_gethtbyname2()
94 info->hp->h_length = 0; in _hf_gethtbyname2()
97 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()
98 if (hp == NULL) { in _hf_gethtbyname2()
105 if (strcasecmp(hp->h_name, name) != 0) { in _hf_gethtbyname2()
107 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
114 hent.h_addrtype = hp->h_addrtype; in _hf_gethtbyname2()
115 hent.h_length = hp->h_length; in _hf_gethtbyname2()
117 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2()
118 for (anum = 0; hp->h_aliases[anum]; anum++) { in _hf_gethtbyname2()
120 HENT_SCOPY(aliases[anum], hp->h_aliases[anum], ptr, len); in _hf_gethtbyname2()
127 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr, len); in _hf_gethtbyname2()
141 hp = info->hp; in _hf_gethtbyname2()
145 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2()
146 hp->h_length = hent.h_length; in _hf_gethtbyname2()
148 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _hf_gethtbyname2()
149 HENT_ARRAY(hp->h_addr_list, num, ptr, len); in _hf_gethtbyname2()
152 HENT_COPY(hp->h_addr_list[i], addr_ptrs[i], hp->h_length, ptr, len); in _hf_gethtbyname2()
155 if (hp->h_addrtype == AF_INET) { in _hf_gethtbyname2()
159 hp->h_addr_list[num] = NULL; in _hf_gethtbyname2()
161 HENT_SCOPY(hp->h_name, hent.h_name, ptr, len); in _hf_gethtbyname2()
164 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _hf_gethtbyname2()
166 hp->h_aliases[anum] = NULL; in _hf_gethtbyname2()
178 info->hp->h_length = len; in _hf_gethtbyaddr()
179 info->hp->h_addrtype = af; in _hf_gethtbyaddr()
190 struct hostent* hp; in _hf_gethtbyaddr() local
192 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he)) != NULL) in _hf_gethtbyaddr()
193 if (!memcmp(hp->h_addr_list[0], uaddr, (size_t) hp->h_length)) break; in _hf_gethtbyaddr()
196 if (hp == NULL) { in _hf_gethtbyaddr()