]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-cdp.c
Makefile.in: 'distclean' target: add files and directories to remove
[tcpdump] / print-cdp.c
index 50c1d9da8db3ab7d4cb2d30d5b03bc533cc3ab60..5383fd50f9d57d754a361447e59af57092ae15a9 100644 (file)
  *    http://www.cisco.com/univercd/cc/td/doc/product/lan/trsrb/frames.htm
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-cdp.c,v 1.25 2004-10-07 14:53:11 hannes Exp $";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -43,6 +38,8 @@ static const char rcsid[] _U_ =
 #include "extract.h"                   /* must come after interface.h */
 #include "nlpid.h"
 
+static const char tstr[] = "[|cdp]";
+
 #define CDP_HEADER_LEN  4
 
 static const struct tok cdp_tlv_values[] = {
@@ -92,7 +89,7 @@ cdp_print(const u_char *pptr, u_int length, u_int caplen)
         const u_char *tptr;
 
        if (caplen < CDP_HEADER_LEN) {
-               (void)printf("[|cdp]");
+               printf("%s", tstr);
                return;
        }
 
@@ -218,7 +215,7 @@ cdp_print(const u_char *pptr, u_int length, u_int caplen)
                        }
                        break;
                     default:
-                        print_unknown_data(tptr,"\n\t  ",len);
+                        print_unknown_data(gndo,tptr,"\n\t  ",len);
                        break;
                     }
                 }
@@ -232,7 +229,7 @@ cdp_print(const u_char *pptr, u_int length, u_int caplen)
 
        return;
 trunc:
-       printf("[|cdp]");
+       printf("%s", tstr);
 }
 
 /*