]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Merge in CDP changes from Terry Kennedy <[email protected]>.
authorguy <guy>
Wed, 7 Aug 2002 05:21:06 +0000 (05:21 +0000)
committerguy <guy>
Wed, 7 Aug 2002 05:21:06 +0000 (05:21 +0000)
CREDITS
print-cdp.c

diff --git a/CREDITS b/CREDITS
index 23f9485f9e230f5ab04ad00f73692298423a29f5..671ebed2c4b082e5f0158915fed8523a5b0ee977 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -87,6 +87,7 @@ Additional people who have contributed patches:
        Sami Farin                      <[email protected]>
        Sebastian Krahmer               <[email protected]>
        Seth Webster                    <[email protected]>
+       Terry Kennedy                   <[email protected]>
        Timo Koskiahde
        Tony Li                         <[email protected]>
        Uns Lider                       <[email protected]>
index 587166f2e5e364ee166cbb6f573062a184be7585..a48eb5dd3b433870848e1f303a9c50a67924cf9c 100644 (file)
@@ -26,7 +26,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-cdp.c,v 1.15 2002-08-01 08:53:02 risso Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-cdp.c,v 1.16 2002-08-07 05:21:07 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -148,16 +148,19 @@ cdp_print(const u_char *p, u_int length, u_int caplen,
                        printf(" AVVID untrusted ports CoS: 0x%02x", p[i+4]);
                        break;
                case 0x14:              /* guess - not documented */
-                       printf(" sysName='%.*s'", len - 4, p + i + 4 );
+                       printf(" System Name: '%.*s'", len - 4,
+                               p + i + 4);
                        break;
                case 0x15:              /* guess - not documented */
-                       printf(" sysObjectID" );                /* TODO */
+                       printf(" System Object ID (not decoded) ");     /* TODO */
                        break;
                case 0x16:              /* guess - not documented */
-                       printf(" management address(es)" );
+                       printf(" Management Addresses: ");
+                       if (cdp_print_addr(p + i + 4, len - 4) < 0)
+                               goto trunc;
                        break;
                case 0x17:              /* guess - not documented */
-                       printf(" phys. location 0x%02x/%.*s",
+                       printf(" Physical Location: 0x%02x/%.*s",
                                p[i+4], len - 5, p + i + 5 );
                        break;
                default: