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

Diff for /src/usr.bin/tcpbench/tcpbench.c between version 1.40 and 1.41

version 1.40, 2013/12/24 22:26:20 version 1.41, 2013/12/25 01:46:00
Line 291 
Line 291 
 {  {
         struct inpcbtable tcbtab;          struct inpcbtable tcbtab;
         struct inpcb *next, *prev;          struct inpcb *next, *prev;
         struct inpcb inpcb;          struct inpcb inpcb, prevpcb;
         struct tcpcb tcpcb;          struct tcpcb tcpcb;
   
         struct sockaddr_storage me, them;          struct sockaddr_storage me, them;
Line 331 
Line 331 
                 if (ptb->vflag >= 2)                  if (ptb->vflag >= 2)
                         fprintf(stderr, "Checking PCB %p\n", next);                          fprintf(stderr, "Checking PCB %p\n", next);
                 kget((u_long)next, &inpcb, sizeof(inpcb));                  kget((u_long)next, &inpcb, sizeof(inpcb));
                   if (prev != NULL) {
                           kget((u_long)prev, &prevpcb, sizeof(prevpcb));
                           if (TAILQ_NEXT(&prevpcb, inp_queue) != next) {
                                   if (nretry--) {
                                           warnx("PCB prev pointer insane");
                                           goto retry;
                                   } else
                                           errx(1, "PCB prev pointer insane,"
                                               " all attempts exhaused");
                           }
                   }
                 prev = next;                  prev = next;
                 next = TAILQ_NEXT(&inpcb, inp_queue);                  next = TAILQ_NEXT(&inpcb, inp_queue);
   

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41