Lines Matching defs:hp
224 struct hostent *hp;
228 hp = gethostbyname(name);
229 if (hp == NULL) {
246 if (memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0) {
248 (void)inet_ntop(AF_INET, hp->h_addr_list[0],
260 struct hostent *hp;
264 hp = gethostbyname2(name, af);
265 if (hp == NULL) {
286 if (hp->h_addrtype != af) {
292 if (len != (int)hp->h_length ||
293 memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0)
296 (void)inet_ntop(af, hp->h_addr_list[0],
310 struct hostent *hp;
321 hp = getipnodebyname(name, af, flags, &error_num);
322 if (hp == NULL) {
343 if (hp->h_addrtype != af) {
346 freehostent(hp);
350 if (len != (int)hp->h_length ||
351 memcmp(hp->h_addr_list[0], addrbuf, hp->h_length) != 0)
354 (void)inet_ntop(af, hp->h_addr_list[0],
358 freehostent(hp);
362 freehostent(hp);
368 struct hostent *hp;
379 hp = gethostbyaddr(addrbuf, len, af);
381 if (hp == NULL) {
396 if (name != NULL && strcmp(hp->h_name, name) != 0) {
398 "expected %s\n", address, hp->h_name, name);
407 struct hostent *hp;
419 hp = getipnodebyaddr(addrbuf, len, af, &error_num);
421 if (hp == NULL) {
436 if (name != NULL && strcmp(hp->h_name, name) != 0) {
438 "expected %s\n", address, hp->h_name, name);
439 freehostent(hp);
443 freehostent(hp);