[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.15 and 1.16

version 1.15, 2009/06/26 06:39:47 version 1.16, 2009/08/13 23:45:35
Line 33 
Line 33 
   
 static  enum state { BOOT, TIME, RUN } state = TIME;  static  enum state { BOOT, TIME, RUN } state = TIME;
   
 struct ifcount {  
         u_int64_t       ifc_ib;                 /* input bytes */  
         u_int64_t       ifc_ip;                 /* input packets */  
         u_int64_t       ifc_ie;                 /* input errors */  
         u_int64_t       ifc_ob;                 /* output bytes */  
         u_int64_t       ifc_op;                 /* output packets */  
         u_int64_t       ifc_oe;                 /* output errors */  
         u_int64_t       ifc_co;                 /* collisions */  
         int             ifc_flags;              /* up / down */  
         int             ifc_state;              /* link state */  
 } sum;  
   
 struct ifstat {  struct ifstat {
         char            ifs_name[IFNAMSIZ];     /* interface name */          char            ifs_name[IFNAMSIZ];     /* interface name */
         char            ifs_description[IFDESCRSIZE];          char            ifs_description[IFDESCRSIZE];
Line 61 
Line 49 
 int select_if(void);  int select_if(void);
 int if_keyboard_callback(int);  int if_keyboard_callback(int);
   
 static void fetchifstat(void);  void fetchifstat(void);
 static void showifstat(struct ifstat *);  static void showifstat(struct ifstat *);
 static void showtotal(void);  static void showtotal(void);
   
Line 190 
Line 178 
 }  }
   
   
 static void  void
 fetchifstat(void)  fetchifstat(void)
 {  {
         struct ifstat *newstats, *ifs;          struct ifstat *newstats, *ifs;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16