[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.36 and 1.37

version 1.36, 2013/03/20 06:55:24 version 1.37, 2013/12/20 02:04:09
Line 263 
Line 263 
         KREAD(off, &pcbtable, sizeof (struct inpcbtable));          KREAD(off, &pcbtable, sizeof (struct inpcbtable));
   
         prev = head = (struct inpcb *)&((struct inpcbtable *)off)->inpt_queue;          prev = head = (struct inpcb *)&((struct inpcbtable *)off)->inpt_queue;
         next = CIRCLEQ_FIRST(&pcbtable.inpt_queue);          next = TAILQ_FIRST(&pcbtable.inpt_queue);
   
         while (next != head) {          while (next != head) {
                 KREAD(next, &inpcb, sizeof (inpcb));                  KREAD(next, &inpcb, sizeof (inpcb));
                 if (CIRCLEQ_PREV(&inpcb, inp_queue) != prev) {                  if (TAILQ_PREV(&inpcb, inpthead, inp_queue) != prev) {
                         error("Kernel state in transition");                          error("Kernel state in transition");
                         return 0;                          return 0;
                 }                  }
                 prev = next;                  prev = next;
                 next = CIRCLEQ_NEXT(&inpcb, inp_queue);                  next = TAILQ_NEXT(&inpcb, inp_queue);
   
                 if (!aflag) {                  if (!aflag) {
                         if (!(inpcb.inp_flags & INP_IPV6) &&                          if (!(inpcb.inp_flags & INP_IPV6) &&

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37