]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-chdlc.c
avoid double printing of "unknown proto" message
[tcpdump] / print-chdlc.c
index c8186be39e45a2e401c3f85762333d2205718cf8..2d0ad42819706895397434fca4dd4816c99619d6 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.9 2005-11-04 18:31:08 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.10 2005-11-24 07:43:57 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -110,7 +110,8 @@ chdlc_print(register const u_char *p, u_int length) {
                     isoclns_print(p+CHDLC_HDRLEN, length, length);
                 break;
        default:
-                printf("unknown CHDLC protocol (0x%04x)", proto);
+                if (!eflag)
+                        printf("unknown CHDLC protocol (0x%04x)", proto);
                 break;
        }