From 1c332d99474597c507a25369c746d7c6ad0ce119 Mon Sep 17 00:00:00 2001 From: fenner Date: Thu, 17 Aug 2000 18:38:24 +0000 Subject: [PATCH] Set frpcnt to the right value. Submitted by: Ravi Puvvala --- print-pim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/print-pim.c b/print-pim.c index d9126e86..ab869dc4 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.19 2000-04-24 12:59:39 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.20 2000-08-17 18:38:24 fenner Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -799,12 +799,12 @@ pimv2_print(register const u_char *bp, register u_int len) (void)printf("...)"); goto bs_done; } - (void)printf(" RPcnt=%d", frpcnt = bp[0]); + (void)printf(" RPcnt=%d", bp[0]); if (bp + 1 >= ep) { (void)printf("...)"); goto bs_done; } - (void)printf(" FRPcnt=%d", bp[1]); + (void)printf(" FRPcnt=%d", frpcnt = bp[1]); bp += 4; for (j = 0; j < frpcnt && bp < ep; j++) {