From e288e9d823d026c9ce7a6bb24dea3714c84cc572 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Fri, 31 Mar 2006 10:20:21 +0000 Subject: [PATCH] Show ECN ECE and CWR flags too. --- usr.sbin/trpt/trpt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c index f31e456bce58..e812f16b44ee 100644 --- a/usr.sbin/trpt/trpt.c +++ b/usr.sbin/trpt/trpt.c @@ -1,7 +1,7 @@ -/* $NetBSD: trpt.c,v 1.21 2005/09/06 03:04:15 rpaulo Exp $ */ +/* $NetBSD: trpt.c,v 1.22 2006/03/31 10:20:21 rpaulo Exp $ */ /*- - * Copyright (c) 1997 The NetBSD Foundation, Inc. + * Copyright (c) 1997, 2005, 2006 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -77,7 +77,7 @@ __COPYRIGHT( #if 0 static char sccsid[] = "@(#)trpt.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: trpt.c,v 1.21 2005/09/06 03:04:15 rpaulo Exp $"); +__RCSID("$NetBSD: trpt.c,v 1.22 2006/03/31 10:20:21 rpaulo Exp $"); #endif #endif /* not lint */ @@ -495,6 +495,8 @@ tcp_trace(short act, short ostate, struct tcpcb *atp, struct tcpcb *tp, pf(TH_RST, "RST"); pf(TH_PUSH, "PUSH"); pf(TH_URG, "URG"); + pf(TH_CWR, "CWR"); + pf(TH_ECE, "ECE"); printf(">"); } break;