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

Diff for /src/usr.bin/systat/netstat.c between version 1.15 and 1.16

version 1.15, 2001/06/22 14:57:20 version 1.16, 2001/07/28 05:36:18
Line 73 
Line 73 
 #include <netdb.h>  #include <netdb.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <err.h>
 #include <nlist.h>  #include <nlist.h>
 #include <paths.h>  #include <paths.h>
 #include "systat.h"  #include "systat.h"
Line 212 
Line 213 
         while (next != head) {          while (next != head) {
                 KREAD(next, &inpcb, sizeof (inpcb));                  KREAD(next, &inpcb, sizeof (inpcb));
                 if (inpcb.inp_queue.cqe_prev != prev) {                  if (inpcb.inp_queue.cqe_prev != prev) {
 printf("prev = %x, head = %x, next = %x, inpcb...prev = %x\n", prev, head, next, inpcb.inp_queue.cqe_prev);  printf("prev = %p, head = %p, next = %p, inpcb...prev = %p\n", prev, head, next, inpcb.inp_queue.cqe_prev);
                         p = netcb.nif_forw;                          p = netcb.nif_forw;
                         for (; p != (struct netinfo *)&netcb; p = p->nif_forw)                          for (; p != (struct netinfo *)&netcb; p = p->nif_forw)
                                 p->nif_seen = 1;                                  p->nif_seen = 1;

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