Lines Matching defs:hp
45 static int is_local_if(struct hostent *hp);
58 struct hostent *hp;
62 if (hp = getipnodebyname((const char *) host, AF_INET, flags, &err))
63 if (is_local_if(hp))
65 if (hp = getipnodebyname((const char *) host, AF_INET6, flags, &err))
66 if (is_local_if(hp))
73 is_local_if(struct hostent *hp)
85 if ((s = socket(hp->h_addrtype, SOCK_DGRAM, 0)) == -1) {
90 lifn.lifn_family = hp->h_addrtype;
105 lifc.lifc_family = hp->h_addrtype;
123 if (lifrp->lifr_addr.ss_family != hp->h_addrtype) {
136 for (nha = 0; hp->h_addr_list[nha]; nha++) {
137 if (memcmp(hp->h_addr_list[nha], lifraddrp(lifrp),
138 hp->h_length) == 0) {