print ip-proto PIM packets (ip proto 103)

This commit is contained in:
explorer 1999-07-25 04:23:21 +00:00
parent 75fd3e78bb
commit a3d357795d
2 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: print-ip.c,v 1.7 1999/07/02 11:31:32 itojun Exp $ */
/* $NetBSD: print-ip.c,v 1.8 1999/07/25 04:23:21 explorer Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@ -27,7 +27,7 @@
static const char rcsid[] =
"@(#) Header: print-ip.c,v 1.66 97/05/28 12:51:43 leres Exp (LBL)";
#else
__RCSID("$NetBSD: print-ip.c,v 1.7 1999/07/02 11:31:32 itojun Exp $");
__RCSID("$NetBSD: print-ip.c,v 1.8 1999/07/25 04:23:21 explorer Exp $");
#endif
#endif
@ -486,6 +486,10 @@ again:
igmp_print(cp, len, (const u_char *)ip);
break;
case IPPROTO_PIM:
pim_print(cp, len);
break;
case 4:
/* DVMRP multicast tunnel (ip-in-ip encapsulation) */
#if 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: print-pim.c,v 1.2 1999/07/02 11:31:35 itojun Exp $ */
/* $NetBSD: print-pim.c,v 1.3 1999/07/25 04:23:21 explorer Exp $ */
/*
* Copyright (c) 1995, 1996
@ -27,7 +27,7 @@
static const char rcsid[] =
"@(#) Header: print-pim.c,v 1.7 96/09/26 23:36:48 leres Exp (LBL)";
#else
__RCSID("$NetBSD: print-pim.c,v 1.2 1999/07/02 11:31:35 itojun Exp $");
__RCSID("$NetBSD: print-pim.c,v 1.3 1999/07/25 04:23:21 explorer Exp $");
#endif
#endif
@ -147,11 +147,11 @@ pim_print(register const u_char *bp, register u_int len)
switch(pim->pim_ver) {
case 2: /* avoid hardcoding? */
(void)printf("v2");
(void)printf("PIMv2");
pimv2_print(bp, len);
break;
default:
(void)printf("v%d", pim->pim_ver);
(void)printf("PIMv%d", pim->pim_ver);
break;
}
return;