summaryrefslogtreecommitdiff
path: root/print-pim.c
diff options
context:
space:
mode:
authorfenner <fenner>2001-05-10 05:30:20 +0000
committerfenner <fenner>2001-05-10 05:30:20 +0000
commit339f6a65b25d0d3b5d235e19238b75d0afe5dac7 (patch)
treeda267546e4700b47ff5611d7115f9f203b9ef77e /print-pim.c
parent06fc2bdce63793a9c054fe5289145c0d7cd78110 (diff)
downloadtcpdump-339f6a65b25d0d3b5d235e19238b75d0afe5dac7.tar.gz
Don't print multiple lines for a single packet unless -vv
Diffstat (limited to 'print-pim.c')
-rw-r--r--print-pim.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/print-pim.c b/print-pim.c
index ca004947..52096e2e 100644
--- a/print-pim.c
+++ b/print-pim.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.25 2001-04-27 02:18:27 fenner Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.26 2001-05-10 05:30:21 fenner Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -96,10 +96,16 @@ pimv1_join_prune_print(register const u_char *bp, register u_int len)
}
TCHECK2(bp[0], 4);
- (void)printf("\n Upstream Nbr: %s", ipaddr_string(bp));
+ if (vflag > 1)
+ (void)printf("\n");
+ (void)printf(" Upstream Nbr: %s", ipaddr_string(bp));
TCHECK2(bp[6], 2);
- (void)printf("\n Hold time: ");
+ if (vflag > 1)
+ (void)printf("\n");
+ (void)printf(" Hold time: ");
relts_print(EXTRACT_16BITS(&bp[6]));
+ if (vflag < 2)
+ return;
bp += 8;
len -= 8;