From: hannes Date: Tue, 20 Aug 2002 00:23:59 +0000 (+0000) Subject: more consistent use of the length: output; X-Git-Tag: tcpdump-3.8-bp~365 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/2075ea09c1535b547298fa47b51b2bfe41229032?hp=973a00103a948e271cbcb3b7deeb164055e55158 more consistent use of the length: output; --- diff --git a/print-bgp.c b/print-bgp.c index 7e098438..5fcf97c3 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.46 2002-08-06 04:42:04 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.47 2002-08-20 00:23:59 hannes Exp $"; #endif #include @@ -1247,7 +1247,7 @@ bgp_header_print(const u_char *dat, int length) TCHECK2(dat[0], BGP_SIZE); memcpy(&bgp, dat, BGP_SIZE); - printf("\n\t%s Message (%u), length: %u ", + printf("\n\t%s Message (%u), length: %u", tok2str(bgp_msg_values, "Unknown", bgp.bgp_type), bgp.bgp_type, length); @@ -1295,7 +1295,7 @@ bgp_print(const u_char *dat, int length) if (snapend < dat + length) ep = snapend; - printf(": BGP"); + printf(": BGP, length: %u",length); p = dat; start = p;