I noticed that neither -X or -x work with PPPoE and tcpdump.  This
patch fixes this for me.  I don't understand why PPPOE_HDRLEN+2 is
needed, as logic would seem to say that the +2 shoudln't be required?

Darren

*** print-pppoe.c.orig  Fri Jul  6 04:54:17 2001
--- print-pppoe.c       Tue May 28 21:56:45 2002
***************
*** 112,117 ****
--- 112,126 ----
        snapend = p + caplen;
  
        pppoe_print(p, length);
+ 
+       if (caplen > PPPOE_HDRLEN + 2) {
+               p += PPPOE_HDRLEN + 2;
+               caplen -= PPPOE_HDRLEN + 2;
+ 
+               if (xflag)
+                       default_print(p, caplen);
+       }
+ 
        putchar('\n');
        --infodelay;
        if (infoprint)
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to