tcpdump mailing list archives

Re: patch for print-ppp.c


From: Darren Reed <darrenr () reed wattle id au>
Date: Mon, 5 Jul 2004 20:13:50 +1000 (EST)

Rather than just hexdump the PPP data and say "unknown PPP proto (0x00fb)",
I thought it might be better to print out a nicer message...

--- print-ppp.c.orig    2004-07-05 18:30:38.000000000 +1000
+++ print-ppp.c 2004-07-05 18:30:47.000000000 +1000
@@ -1170,6 +1170,9 @@
      case PPP_MPLS_MCAST:
              mpls_print(p, length);
              break;
+     case PPP_COMP:
+             printf("compressed data");
+             break;

Looks better if its "compressed PPP data" :)

Darren
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: