=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tcpbench/tcpbench.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/tcpbench/tcpbench.c 2013/03/11 17:40:11 1.38 --- src/usr.bin/tcpbench/tcpbench.c 2013/12/20 02:04:09 1.39 *************** *** 322,330 **** fprintf(stderr, "Using PCB table at %lu\n", ptb->ktcbtab); retry: kget(ptb->ktcbtab, &tcbtab, sizeof(tcbtab)); ! prev = head = (struct inpcb *)&CIRCLEQ_FIRST( &((struct inpcbtable *)ptb->ktcbtab)->inpt_queue); ! next = CIRCLEQ_FIRST(&tcbtab.inpt_queue); if (ptb->vflag >= 2) fprintf(stderr, "PCB head at %p\n", head); --- 322,330 ---- fprintf(stderr, "Using PCB table at %lu\n", ptb->ktcbtab); retry: kget(ptb->ktcbtab, &tcbtab, sizeof(tcbtab)); ! prev = head = (struct inpcb *)&TAILQ_FIRST( &((struct inpcbtable *)ptb->ktcbtab)->inpt_queue); ! next = TAILQ_FIRST(&tcbtab.inpt_queue); if (ptb->vflag >= 2) fprintf(stderr, "PCB head at %p\n", head); *************** *** 332,338 **** if (ptb->vflag >= 2) fprintf(stderr, "Checking PCB %p\n", next); kget((u_long)next, &inpcb, sizeof(inpcb)); ! if (CIRCLEQ_PREV(&inpcb, inp_queue) != prev) { if (nretry--) { warnx("pcb prev pointer insane"); goto retry; --- 332,338 ---- if (ptb->vflag >= 2) fprintf(stderr, "Checking PCB %p\n", next); kget((u_long)next, &inpcb, sizeof(inpcb)); ! if (TAILQ_PREV(&inpcb, inpthead, inp_queue) != prev) { if (nretry--) { warnx("pcb prev pointer insane"); goto retry; *************** *** 341,347 **** " all attempts exausted"); } prev = next; ! next = CIRCLEQ_NEXT(&inpcb, inp_queue); if (me.ss_family == AF_INET) { if ((inpcb.inp_flags & INP_IPV6) != 0) { --- 341,347 ---- " all attempts exausted"); } prev = next; ! next = TAILQ_NEXT(&inpcb, inp_queue); if (me.ss_family == AF_INET) { if ((inpcb.inp_flags & INP_IPV6) != 0) {