[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.4 and 1.5

version 1.4, 2006/01/10 23:29:41 version 1.5, 2006/03/31 04:10:59
Line 23 
Line 23 
 #include <net/route.h>  #include <net/route.h>
   
 #include <stdlib.h>  #include <stdlib.h>
   #include <string.h>
   
 #include "systat.h"  #include "systat.h"
 #include "extern.h"  #include "extern.h"
Line 47 
Line 48 
 } *ifstats;  } *ifstats;
   
 static  int nifs = 0;  static  int nifs = 0;
 extern  int naptime;  extern  u_int naptime;
   
 WINDOW *  WINDOW *
 openifstat(void)  openifstat(void)
Line 109 
Line 110 
         struct sockaddr *info[RTAX_MAX];          struct sockaddr *info[RTAX_MAX];
         struct sockaddr_dl *sdl;          struct sockaddr_dl *sdl;
         char *buf, *next, *lim;          char *buf, *next, *lim;
         int mib[6], i;          int mib[6];
         size_t need;          size_t need;
   
         mib[0] = CTL_NET;          mib[0] = CTL_NET;
Line 178 
Line 179 
 labelifstat(void)  labelifstat(void)
 {  {
   
         wmove(wnd, 0, 0); wclrtobot(wnd);          wmove(wnd, 0, 0);
           wclrtobot(wnd);
   
         mvwaddstr(wnd, 1, INSET, "Interfaces");          mvwaddstr(wnd, 1, INSET, "Interfaces");
         mvwaddstr(wnd, 1, INSET+15, "Ibytes");          mvwaddstr(wnd, 1, INSET+15, "Ibytes");
Line 199 
Line 201 
         struct ifstat *ifs;          struct ifstat *ifs;
   
         row = 2;          row = 2;
         wmove(wnd, 0, 0); wclrtoeol(wnd);          wmove(wnd, 0, 0);
           wclrtoeol(wnd);
         for (ifs = ifstats; ifs < ifstats + nifs; ifs++) {          for (ifs = ifstats; ifs < ifstats + nifs; ifs++) {
                 if (ifs->ifs_name[0] == '\0')                  if (ifs->ifs_name[0] == '\0')
                         continue;                          continue;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5