Return to if.c CVS log | Up to [local] / src / usr.bin / netstat |
version 1.56, 2008/01/03 21:01:40 | version 1.57, 2008/03/18 20:03:37 | ||
---|---|---|---|
|
|
||
case RTM_NEWADDR: | case RTM_NEWADDR: | ||
if (qflag && total == 0) | if (qflag && total == 0) | ||
continue; | continue; | ||
if (interface != 0 && strcmp(name, interface) != 0) | |||
continue; | |||
ifam = (struct ifa_msghdr *)next; | ifam = (struct ifa_msghdr *)next; | ||
if ((ifam->ifam_addrs & (RTA_NETMASK | RTA_IFA | | if ((ifam->ifam_addrs & (RTA_NETMASK | RTA_IFA | | ||
RTA_BRD)) == 0) | RTA_BRD)) == 0) |