Lines Matching refs:hp
53 struct hostent *hp;
56 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET);
58 if (hp != NULL) {
59 strlcpy(trimmed, hp->h_name, sizeof(trimmed));
64 strncpy(lookup, hp->h_name, sizeof(lookup) - 1);
66 hp = gethostbyname(lookup);
67 if (hp == NULL)
69 else for (; ; hp->h_addr_list++) {
70 if (*hp->h_addr_list == NULL) {
74 if (!memcmp(*hp->h_addr_list, ip, sizeof(*ip))) {