print ip-proto PIM packets (ip proto 103)
This commit is contained in:
parent
75fd3e78bb
commit
a3d357795d
|
@ -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
|
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"@(#) Header: print-ip.c,v 1.66 97/05/28 12:51:43 leres Exp (LBL)";
|
"@(#) Header: print-ip.c,v 1.66 97/05/28 12:51:43 leres Exp (LBL)";
|
||||||
#else
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -486,6 +486,10 @@ again:
|
||||||
igmp_print(cp, len, (const u_char *)ip);
|
igmp_print(cp, len, (const u_char *)ip);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case IPPROTO_PIM:
|
||||||
|
pim_print(cp, len);
|
||||||
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
/* DVMRP multicast tunnel (ip-in-ip encapsulation) */
|
/* DVMRP multicast tunnel (ip-in-ip encapsulation) */
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1995, 1996
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"@(#) Header: print-pim.c,v 1.7 96/09/26 23:36:48 leres Exp (LBL)";
|
"@(#) Header: print-pim.c,v 1.7 96/09/26 23:36:48 leres Exp (LBL)";
|
||||||
#else
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -147,11 +147,11 @@ pim_print(register const u_char *bp, register u_int len)
|
||||||
|
|
||||||
switch(pim->pim_ver) {
|
switch(pim->pim_ver) {
|
||||||
case 2: /* avoid hardcoding? */
|
case 2: /* avoid hardcoding? */
|
||||||
(void)printf("v2");
|
(void)printf("PIMv2");
|
||||||
pimv2_print(bp, len);
|
pimv2_print(bp, len);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
(void)printf("v%d", pim->pim_ver);
|
(void)printf("PIMv%d", pim->pim_ver);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue