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

Diff for /src/usr.bin/netstat/if.c between version 1.58 and 1.59

version 1.58, 2008/12/24 16:53:22 version 1.59, 2009/01/26 20:30:26
Line 529 
Line 529 
                         else if (sdl->sdl_nlen > 0)                          else if (sdl->sdl_nlen > 0)
                                 memcpy(name, sdl->sdl_data, sdl->sdl_nlen);                                  memcpy(name, sdl->sdl_data, sdl->sdl_nlen);
   
                         if (interface != 0 && !strcmp(name, interface)) {                          if (interface != NULL && !strcmp(name, interface)) {
                                 strlcpy(ip_cur.ift_name, name,                                  strlcpy(ip_cur.ift_name, name,
                                     sizeof(ip_cur.ift_name));                                      sizeof(ip_cur.ift_name));
                                 ip_cur.ift_ip = ifd->ifi_ipackets;                                  ip_cur.ift_ip = ifd->ifi_ipackets;

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59