diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-02-18 14:39:36 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-02-18 14:39:36 +0000 |
commit | e729cd3bcd63e8e638ff729682bea1af5a8b8750 (patch) | |
tree | d771575deaf33e6883bbe3a842bbd8790846576a /usr.sbin/tcpdump/print-ether.c | |
parent | ba0d49952ec189260e1ba2238f76893fddc9e522 (diff) |
Add support for dumping PPPoE Discovery and Session packets
Diffstat (limited to 'usr.sbin/tcpdump/print-ether.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ether.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-ether.c b/usr.sbin/tcpdump/print-ether.c index b5e199783ec..35ae0605cff 100644 --- a/usr.sbin/tcpdump/print-ether.c +++ b/usr.sbin/tcpdump/print-ether.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ether.c,v 1.10 2000/01/16 12:32:16 jakob Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ether.c,v 1.11 2000/02/18 14:39:35 jason Exp $ (LBL)"; #endif #include <sys/param.h> @@ -196,6 +196,13 @@ ether_encap_print(u_short ethertype, const u_char *p, ether_print(p + 4, length - 4); return (1); +#ifdef PPP + case ETHERTYPE_PPPOEDISC: + case ETHERTYPE_PPPOE: + pppoe_if_print(ethertype, p, length, caplen); + return (1); +#endif + case ETHERTYPE_LAT: case ETHERTYPE_SCA: case ETHERTYPE_MOPRC: |