[BACK]Return to if.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / systat

Diff for /src/usr.bin/systat/if.c between version 1.13 and 1.14

version 1.13, 2009/04/03 20:29:21 version 1.14, 2009/06/25 15:53:12
Line 221 
Line 221 
         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)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14