X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f555c163f90c9de17ebcef8313f86404c5174ca9..5d19d3c0ac649a19d1693db14d0d16526c23e052:/print-ether.c diff --git a/print-ether.c b/print-ether.c index 5ec96024..4ce1e736 100644 --- a/print-ether.c +++ b/print-ether.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.44 1999-10-07 23:47:11 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.46 1999-10-30 05:11:13 itojun Exp $ (LBL)"; #endif #include @@ -41,11 +41,14 @@ struct rtentry; #include #include #include -#include #include #include +#ifdef INET6 +#include +#endif + #include "interface.h" #include "addrtoname.h" #include "ethertype.h" @@ -166,6 +169,12 @@ ether_encap_print(u_short ethertype, const u_char *p, ip_print(p, length); return (1); +#ifdef INET6 + case ETHERTYPE_IPV6: + ip6_print(p, length); + return (1); +#endif /*INET6*/ + case ETHERTYPE_ARP: case ETHERTYPE_REVARP: arp_print(p, length, caplen);