Lines Matching defs:hp
243 struct hostent *hp;
578 hp = cap_gethostbyname2(capdns, source,
582 hp = gethostbyname2(source, AF_INET);
583 if (!hp)
588 if ((unsigned)hp->h_length > sizeof(sock_in.sin_addr) ||
589 hp->h_length < 0)
591 memcpy(&sock_in.sin_addr, hp->h_addr_list[0],
593 (void)strncpy(snamebuf, hp->h_name,
612 hp = cap_gethostbyname2(capdns, target, AF_INET);
615 hp = gethostbyname2(target, AF_INET);
616 if (!hp)
620 if ((unsigned)hp->h_length > sizeof(to->sin_addr))
622 memcpy(&to->sin_addr, hp->h_addr_list[0], sizeof to->sin_addr);
623 (void)strncpy(hnamebuf, hp->h_name, sizeof(hnamebuf) - 1);
1705 struct hostent *hp;
1713 hp = cap_gethostbyaddr(capdns, (char *)&ina, 4, AF_INET);
1716 hp = gethostbyaddr((char *)&ina, 4, AF_INET);
1718 if (hp == NULL)
1721 (void)snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name,