hostinfo
extern int hostinfo;
if (hostinfo)
if (hostinfo)
int hostinfo = 1; /* print host-specific info in messages */
struct addrinfo *hostinfo;
if (hostinfo) {
hostinfo = 0;
if (hostinfo)
hrp->hostinfo = NULL;
hrp->hostinfo = res;
for (hi = hrp->hostinfo; hi != NULL;
if (hrp->hostinfo && hrp->hostinfo != res)
freeaddrinfo(hrp->hostinfo);
hrp->hostinfo = res;
switch(hrp->hostinfo->ai_family) {
addr = &((struct sockaddr_in *)hrp->hostinfo->ai_addr)->sin_addr;
addr = &((struct sockaddr_in6 *)hrp->hostinfo->ai_addr)->sin6_addr;
freeaddrinfo(hrp->hostinfo);
hrp->hostinfo = NULL; /*mark as blank*/
hrp->hostinfo->ai_family,
freeaddrinfo(hrp->hostinfo);
hrp->hostinfo = NULL; /* mark as blank */
for (hi = hrp->hostinfo; hi != NULL; hi = hi->ai_next) {
hostinfo = 0;
int hostinfo = 1; /* do we print login banner? */
if (hostinfo && *IM)
struct hostinfo *
register struct hostinfo *hi;
freehostinfo(register struct hostinfo *hi)
register struct hostinfo *hi;
void freehostinfo(struct hostinfo *);
struct hostinfo *gethostinfo(char *);
register struct hostinfo *hi;
struct hostent *hostinfo;
if ((hostinfo = gethostbyname(group)) == NULL)
if (!IN_MULTICAST(ntohl(*hostinfo->h_addr)))
saddr.sin_addr = *(struct in_addr *) hostinfo->h_addr;
struct hostent *hostinfo;
if ((hostinfo = gethostbyname(group)) == NULL)
addr.sin_addr = *(struct in_addr *) hostinfo->h_addr;