diff options
author | julian <julian@FreeBSD.org> | 2001-09-27 08:02:27 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-09-27 08:02:27 +0000 |
commit | 3176497499097571e0f23c7a657b2aeeaa650e96 (patch) | |
tree | 743b2bd55395fa34f6af706b3566e2eeb65582c9 /contrib | |
parent | 2f621db6623bf2da7b85c39737f044c9a92b549c (diff) | |
download | FreeBSD-src-3176497499097571e0f23c7a657b2aeeaa650e96.zip FreeBSD-src-3176497499097571e0f23c7a657b2aeeaa650e96.tar.gz |
Quick hack to print out the non-standard pppoe used by 3com
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tcpdump/ethertype.h | 6 | ||||
-rw-r--r-- | contrib/tcpdump/print-ether.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/contrib/tcpdump/ethertype.h b/contrib/tcpdump/ethertype.h index 4211ba9..86d96fe 100644 --- a/contrib/tcpdump/ethertype.h +++ b/contrib/tcpdump/ethertype.h @@ -109,6 +109,12 @@ #ifndef ETHERTYPE_PPPOES #define ETHERTYPE_PPPOES 0x8864 #endif +#ifndef ETHERTYPE_PPPOED2 +#define ETHERTYPE_PPPOED2 0x3c12 +#endif +#ifndef ETHERTYPE_PPPOES2 +#define ETHERTYPE_PPPOES2 0x3c13 +#endif #ifndef ETHERTYPE_LOOPBACK #define ETHERTYPE_LOOPBACK 0x9000 #endif diff --git a/contrib/tcpdump/print-ether.c b/contrib/tcpdump/print-ether.c index 723853f..3c165c5 100644 --- a/contrib/tcpdump/print-ether.c +++ b/contrib/tcpdump/print-ether.c @@ -225,6 +225,8 @@ ether_encap_print(u_short ethertype, const u_char *p, case ETHERTYPE_PPPOED: case ETHERTYPE_PPPOES: + case ETHERTYPE_PPPOED2: + case ETHERTYPE_PPPOES2: pppoe_print(p, length); return (1); |