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:
Brian Somers 2000-03-14 01:46:56 +00:00
parent d6d3eeab46
commit 24731321e6

View File

@ -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) {