From 18c020c000d2cc939d52364e7812cb038e804838 Mon Sep 17 00:00:00 2001 From: hannes Date: Wed, 29 Sep 2004 16:49:31 +0000 Subject: -display cosmetics: make the output more conistent: - consistent use of length field (not payload-len) - no message type number given in PIM/OSPF printers as those changes affect only verbose mode and/or routing protocols we hope not to break existing scripts; --- print-ospf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'print-ospf.c') diff --git a/print-ospf.c b/print-ospf.c index be622868..874bf5a2 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.55 2004-09-20 14:56:34 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.56 2004-09-29 16:49:31 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -894,10 +894,9 @@ ospf_print(register const u_char *bp, register u_int length, /* value. If it's not valid, say so and return */ TCHECK(op->ospf_type); cp = tok2str(type2str, "unknown LS-type", op->ospf_type); - printf("OSPFv%u, %s (%u), length: %u", + printf("OSPFv%u, %s, length: %u", op->ospf_version, cp, - op->ospf_type, length); if (*cp == 'u') return; -- cgit v1.2.1