i think the change to move tcp timers to timeouts got this bit wrong.

we do want to print the timer if it is pending, it doesnt make sense
otherwise.

ok?

Index: trpt.c
===================================================================
RCS file: /cvs/src/usr.sbin/trpt/trpt.c,v
retrieving revision 1.33
diff -u -p -r1.33 trpt.c
--- trpt.c      27 Aug 2016 01:50:07 -0000      1.33
+++ trpt.c      2 Oct 2016 08:51:21 -0000
@@ -401,7 +401,7 @@ tcp_trace(short act, short ostate, struc
                int i;
 
                for (i = 0; i < TCPT_NTIMERS; i++) {
-                       if (timeout_pending(&tp->t_timer[i]))
+                       if (!timeout_pending(&tp->t_timer[i]))
                                continue;
                        printf("%s%s=%d", cp, tcptimers[i],
                            tp->t_timer[i].to_time);

Reply via email to