]> The Tcpdump Group git mirrors - tcpdump/commitdiff
be more verbose about unknown protocols in CHDLC
authorhannes <hannes>
Mon, 23 Sep 2002 11:18:08 +0000 (11:18 +0000)
committerhannes <hannes>
Mon, 23 Sep 2002 11:18:08 +0000 (11:18 +0000)
print-chdlc.c

index 2b364b9e9c0908ba9d9c35c1f27b80be29058c1f..fbca391e935b8d3682d5767c34b09edf7d945792 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.17 2002-09-20 10:02:42 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.18 2002-09-23 11:18:08 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -119,6 +119,9 @@ chdlc_print(register const u_char *p, u_int length, u_int caplen)
         case ETHERTYPE_ISO:
                 isoclns_print(p+CHDLC_HDRLEN, length, length, NULL, NULL);
                 break;
         case ETHERTYPE_ISO:
                 isoclns_print(p+CHDLC_HDRLEN, length, length, NULL, NULL);
                 break;
+       default:
+                printf("unknown CHDLC protocol (0x%04x)", proto);
+                break;
        }
        if (xflag)
                default_print((const u_char *)ip, caplen - CHDLC_HDRLEN);
        }
        if (xflag)
                default_print((const u_char *)ip, caplen - CHDLC_HDRLEN);