Don't ``break'' when we come accross a non-RTM_IFINFO type
entry in the block returned by the NET_RT_IFLIST mib, ``continue'' Broken a few minutes ago by: me
This commit is contained in:
parent
d6d3eeab46
commit
24731321e6
@ -314,7 +314,7 @@ Index2Nam(int idx)
|
||||
for (ptr = buf; ptr < end; ptr += ifm->ifm_msglen) {
|
||||
ifm = (struct if_msghdr *)ptr;
|
||||
if (ifm->ifm_type != RTM_IFINFO)
|
||||
break;
|
||||
continue;
|
||||
dl = (struct sockaddr_dl *)(ifm + 1);
|
||||
if (ifm->ifm_index > 0) {
|
||||
if (ifm->ifm_index > have) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user