version 1.13, 2009/04/03 20:29:21 |
version 1.14, 2009/06/25 15:53:12 |
|
|
lim = buf + need; |
lim = buf + need; |
for (next = buf; next < lim; next += ifm.ifm_msglen) { |
for (next = buf; next < lim; next += ifm.ifm_msglen) { |
bcopy(next, &ifm, sizeof ifm); |
bcopy(next, &ifm, sizeof ifm); |
if (ifm.ifm_type != RTM_IFINFO || |
if (ifm.ifm_version != RTM_VERSION || |
!(ifm.ifm_addrs & RTA_IFP)) |
ifm.ifm_type != RTM_IFINFO || |
|
!(ifm.ifm_addrs & RTA_IFP)) |
continue; |
continue; |
if (ifm.ifm_index >= nifs) { |
if (ifm.ifm_index >= nifs) { |
if ((newstats = realloc(ifstats, (ifm.ifm_index + 4) |
if ((newstats = realloc(ifstats, (ifm.ifm_index + 4) |