Lines Matching refs:hp
830 struct hostent *hp = NULL; in routename() local
862 hp = gethostbyaddr((char *)&in, sizeof (struct in_addr), in routename()
864 if (hp != NULL) { in routename()
865 if (((cp = strchr(hp->h_name, '.')) != NULL) && in routename()
868 cp = hp->h_name; in routename()
893 hp = getipnodebyaddr((char *)&in6, in routename()
895 if (hp != NULL) { in routename()
896 if (((cp = strchr(hp->h_name, '.')) != NULL) && in routename()
899 cp = hp->h_name; in routename()
909 if (hp != NULL) in routename()
910 freehostent(hp); in routename()
1795 #define hp (newrt->ri_gate_hp) in newroute() macro
1824 if ((newrt->ri_addrs & RTA_GATEWAY) && hp != NULL && in newroute()
1825 hp->h_addr_list[attempts] != NULL) { in newroute()
1829 hp->h_addr_list[attempts], hp->h_length); in newroute()
1833 hp->h_addr_list[attempts], hp->h_length); in newroute()
1900 #undef hp in newroute()
2046 struct hostent *hp; in getaddr() local
2052 hpp = &hp; in getaddr()
2196 struct hostent *hp; in in_getaddr() local
2249 if ((hp = gethostbyname(str)) != NULL) { in in_getaddr()
2250 *hpp = hp; in in_getaddr()
2251 (void) memmove(&sin->sin_addr, hp->h_addr, in in_getaddr()
2252 hp->h_length); in in_getaddr()
2284 struct hostent *hp; in in6_getaddr() local
2310 hp = getipnodebyname(str, AF_INET6, 0, &error_num); in in6_getaddr()
2311 if (hp != NULL) { in in6_getaddr()
2312 *hpp = hp; in in6_getaddr()
2313 (void) memmove(&sin6->sin6_addr, hp->h_addr, hp->h_length); in in6_getaddr()