From: guy Date: Tue, 6 Jul 2004 22:11:17 +0000 (+0000) Subject: From Darren Reed: just show protocol 0x00fb as "compressed PPP data". X-Git-Tag: tcpdump-3.9.1~314 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b41896e58d6577aa9c1d2ee7e26526b07594618c From Darren Reed: just show protocol 0x00fb as "compressed PPP data". Also, show protocols we don't dissect by name, if we have the name in "ppptype2str[]". --- diff --git a/print-ppp.c b/print-ppp.c index 495914db..cfa92e5e 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -31,7 +31,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.97 2004-07-05 10:59:14 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.98 2004-07-06 22:11:17 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1171,10 +1171,13 @@ handle_ppp(u_int proto, const u_char *p, int length) case PPP_MPLS_MCAST: mpls_print(p, length); break; + case PPP_COMP: + printf("compressed PPP data"); + break; default: - printf("unknown PPP protocol (0x%04x)", proto); - print_unknown_data(p,"\n\t",length); - break; + printf("%s ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", proto)); + print_unknown_data(p,"\n\t",length); + break; } }