From: fenner Date: Sun, 4 Feb 2001 02:17:54 +0000 (+0000) Subject: Always define PPP_COMP. X-Git-Tag: tcpdump-3.7.1~273 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/98e87f34801d7685515384f8d29b57c4c9266894 Always define PPP_COMP. Print [???] when we get a PPP packet that we don't handle. --- diff --git a/ppp.h b/ppp.h index dfaa5040..520fde73 100644 --- 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 */ diff --git a/print-ppp.c b/print-ppp.c index 18400fdb..5867e9a4 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -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; } }