]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Always define PPP_COMP.
authorfenner <fenner>
Sun, 4 Feb 2001 02:17:54 +0000 (02:17 +0000)
committerfenner <fenner>
Sun, 4 Feb 2001 02:17:54 +0000 (02:17 +0000)
Print [???] when we get a PPP packet that we don't handle.

ppp.h
print-ppp.c

diff --git a/ppp.h b/ppp.h
index dfaa5040055ac3e2776099e582b9a4c397f63085..520fde736b8977c0a80ffdcc9281e902c665a3cd 100644 (file)
--- a/ppp.h
+++ b/ppp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.11 2000-10-09 01:53:19 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.12 2001-02-04 02:17:55 fenner Exp $ (LBL) */
 /*
  * Point to Point Protocol (PPP) RFC1331
  *
@@ -33,6 +33,7 @@
 #define PPP_STII       0x0033  /* Stream Protocol (ST-II) */
 #define PPP_VINES      0x0035  /* Banyan Vines */
 #define PPP_IPV6       0x0057  /* IPv6 */
+#define        PPP_COMP        0x00fd  /* Compressed Datagram */
 
 #define PPP_HELLO      0x0201  /* 802.1d Hello Packets */
 #define PPP_LUXCOM     0x0231  /* Luxcom */
index 18400fdbc1783916168d9ae5c931a1002c173f92..5867e9a463d22e44b46f69f3c065e2bf06ff799a 100644 (file)
@@ -31,7 +31,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.58 2000-12-27 11:09:08 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.59 2001-02-04 02:17:54 fenner Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -354,9 +354,7 @@ ppp_protoname(u_int proto)
        case PPP_IPX:   return "IPX";
        case PPP_VJC:   return "VJC";
        case PPP_VJNC:  return "VJNC";
-#ifdef PPP_COMP
        case PPP_COMP:  return "COMP";
-#endif
        case PPP_IPCP:  return "IPCP";
        case PPP_IPV6CP: return "IPv6CP";
        case PPP_IPXCP: return "IPXCP";
@@ -981,6 +979,9 @@ handle_ppp(u_int proto, const u_char *p, int length)
        case PPP_IPX:
                ipx_print(p, length);
                break;
+       default:
+               printf("[???]");
+               break;
        }
 }