Lines Matching refs:hp
56 struct hostent *hp; in GetHostEntry() local
64 hp = NULL; in GetHostEntry()
67 hp = gethostbyname(host); in GetHostEntry()
68 if (hp != NULL) in GetHostEntry()
69 (void) memcpy(&ip.s_addr, hp->h_addr_list[0], (size_t) hp->h_length); in GetHostEntry()
73 return (hp); in GetHostEntry()
90 struct hostent *hp; in GetOurHostName()
110 hp = gethostbyname(host); in GetOurHostName()
111 if (hp != NULL) { in GetOurHostName()
113 cp = strchr((char *) hp->h_name, '.'); in GetOurHostName()
116 (void) Strncpy(host, (char *) hp->h_name, siz); in GetOurHostName()
121 for (curAlias = hp->h_aliases; *curAlias != NULL; curAlias++) { in GetOurHostName()
357 struct hostent *hp; in OpenControlConnection() local
396 hp = GetHostEntry(fhost, &ip_address); in OpenControlConnection()
398 if (hp == NULL) { in OpenControlConnection()
410 cip->servCtlAddr.sin_family = hp->h_addrtype; in OpenControlConnection()
420 if (hp == NULL) { in OpenControlConnection()
505 for (curaddr = hp->h_addr_list; *curaddr != NULL; curaddr++) { in OpenControlConnection()
515 (void) memcpy(&cip->servCtlAddr.sin_addr, *curaddr, (size_t) hp->h_length); in OpenControlConnection()
726 if ((hp == NULL) || (hp->h_name == NULL)) in OpenControlConnection()
729 (void) STRNCPY(cip->actualHost, (char *) hp->h_name); in OpenControlConnection()