Lines Matching refs:hp
231 struct hostent *hp;
235 hp = gethostbyname(name);
236 if (hp == NULL) {
253 if (memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0) {
255 (void)inet_ntop(AF_INET, hp->h_addr_list[0],
267 struct hostent *hp;
271 hp = gethostbyname2(name, af);
272 if (hp == NULL) {
293 if (hp->h_addrtype != af) {
299 if (len != (int)hp->h_length ||
300 memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0)
303 (void)inet_ntop(af, hp->h_addr_list[0],
317 struct hostent *hp;
328 hp = getipnodebyname(name, af, flags, &error_num);
329 if (hp == NULL) {
350 if (hp->h_addrtype != af) {
353 freehostent(hp);
357 if (len != (int)hp->h_length ||
358 memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0)
361 (void)inet_ntop(af, hp->h_addr_list[0],
365 freehostent(hp);
369 freehostent(hp);
375 struct hostent *hp;
386 hp = gethostbyaddr(addrbuf, len, af);
388 if (hp == NULL) {
403 if (name != NULL && strcmp(hp->h_name, name) != 0) {
405 "expected %s\n", address, hp->h_name, name);
414 struct hostent *hp;
426 hp = getipnodebyaddr(addrbuf, len, af, &error_num);
428 if (hp == NULL) {
443 if (name != NULL && strcmp(hp->h_name, name) != 0) {
445 "expected %s\n", address, hp->h_name, name);
446 freehostent(hp);
450 freehostent(hp);