Return to inet.c CVS log | Up to [local] / src / usr.bin / netstat |
version 1.135, 2014/10/23 16:45:57 | version 1.136, 2014/10/26 14:43:03 | ||
---|---|---|---|
|
|
||
} | } | ||
cp = NULL; | cp = NULL; | ||
if (!nflag && inp->s_addr != INADDR_ANY) { | if (!nflag && inp->s_addr != INADDR_ANY) { | ||
int net = inet_netof(*inp); | |||
int lna = inet_lnaof(*inp); | |||
hp = gethostbyaddr((char *)inp, sizeof (*inp), AF_INET); | hp = gethostbyaddr((char *)inp, sizeof (*inp), AF_INET); | ||
if (hp) { | if (hp) { | ||
if ((cp = strchr(hp->h_name, '.')) && | if ((cp = strchr(hp->h_name, '.')) && |