]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Darren Reed: just show protocol 0x00fb as "compressed PPP data".
authorguy <guy>
Tue, 6 Jul 2004 22:11:17 +0000 (22:11 +0000)
committerguy <guy>
Tue, 6 Jul 2004 22:11:17 +0000 (22:11 +0000)
Also, show protocols we don't dissect by name, if we have the name in
"ppptype2str[]".

print-ppp.c

index 495914db1c21580b5843d40b953269610932e778..cfa92e5e720bb334c40e9f4306d00cc6ba2fe476 100644 (file)
@@ -31,7 +31,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
 
 #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
 #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_MPLS_MCAST:
                mpls_print(p, length);
                break;
+       case PPP_COMP:
+               printf("compressed PPP data");
+               break;
        default:
        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;
        }
 }
 
        }
 }