Hi, again,
I made a new patches because the last one try to print info about each
packet even if they size was 0!
So i have attached the good patch here, and it's more simple.

Nicolas Ferrero

diff -urN tcpdump-3.8.3/print-egp.c tcpdump/print-egp.c
--- tcpdump-3.8.3/print-egp.c   2003-11-16 09:51:18.000000000 +0100
+++ tcpdump/print-egp.c 2005-01-12 16:39:22.072770368 +0100
@@ -222,7 +222,7 @@
        register int type;

        egp = (struct egp_packet *)bp;
-       if (!TTEST(*egp)) {
+       if (!TTEST2(*egp, sizeof(*egp) - 6)) {
                printf("[|egp]");
                return;
        }

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

Reply via email to