diff options
| author | 2002-03-08 17:22:24 +0000 | |
|---|---|---|
| committer | 2002-03-08 17:22:24 +0000 | |
| commit | 6d9bdcacacc772f34a3263cfafc69ca48d59669b (patch) | |
| tree | a255958e9561494f841103a68636f9fba43a9d59 | |
| parent | Fix arc4random() usage; add more randomness to pf_get_sport(). (diff) | |
| download | wireguard-openbsd-6d9bdcacacc772f34a3263cfafc69ca48d59669b.tar.xz wireguard-openbsd-6d9bdcacacc772f34a3263cfafc69ca48d59669b.zip | |
fix a fallout from tcp timer conversion
| -rw-r--r-- | usr.sbin/trpt/trpt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c index 82f28086f9c..de132bf04dc 100644 --- a/usr.sbin/trpt/trpt.c +++ b/usr.sbin/trpt/trpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trpt.c,v 1.10 2002/02/17 19:42:40 millert Exp $ */ +/* $OpenBSD: trpt.c,v 1.11 2002/03/08 17:22:24 mickey Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -403,9 +403,10 @@ tcp_trace(act, ostate, atp, tp, ti, req) register int i; for (i = 0; i < TCPT_NTIMERS; i++) { - if (tp->t_timer[i] == 0) + if (timeout_pending(&tp->t_timer[i])) continue; - printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]); + printf("%s%s=%d", cp, tcptimers[i], + tp->t_timer[i].to_time); if (i == TCPT_REXMT) printf(" (t_rxtshft=%d)", tp->t_rxtshift); cp = ", "; |
