Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/tcpdump print ip-proto PIM packets (ip proto 103)



details:   https://anonhg.NetBSD.org/src/rev/e8ca9cde85fc
branches:  trunk
changeset: 474885:e8ca9cde85fc
user:      explorer <explorer%NetBSD.org@localhost>
date:      Sun Jul 25 04:23:21 1999 +0000

description:
print ip-proto PIM packets (ip proto 103)

diffstat:

 usr.sbin/tcpdump/print-ip.c  |  8 ++++++--
 usr.sbin/tcpdump/print-pim.c |  8 ++++----
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs (61 lines):

diff -r bd4c06f4b53f -r e8ca9cde85fc usr.sbin/tcpdump/print-ip.c
--- a/usr.sbin/tcpdump/print-ip.c       Sun Jul 25 00:47:40 1999 +0000
+++ b/usr.sbin/tcpdump/print-ip.c       Sun Jul 25 04:23:21 1999 +0000
@@ -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 @@
                        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
diff -r bd4c06f4b53f -r e8ca9cde85fc usr.sbin/tcpdump/print-pim.c
--- a/usr.sbin/tcpdump/print-pim.c      Sun Jul 25 00:47:40 1999 +0000
+++ b/usr.sbin/tcpdump/print-pim.c      Sun Jul 25 04:23:21 1999 +0000
@@ -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 @@
 
        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;



Home | Main Index | Thread Index | Old Index