X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f6fa6a40d4156cdf5dea882024beb7b10d2412f1..5d19d3c0ac649a19d1693db14d0d16526c23e052:/print-ether.c?ds=inline diff --git a/print-ether.c b/print-ether.c index 6c1c621c..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.45 1999-10-17 21:37:12 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.46 1999-10-30 05:11:13 itojun Exp $ (LBL)"; #endif #include @@ -37,12 +37,18 @@ struct rtentry; #include #include #include +#include #include +#include #include #include #include +#ifdef INET6 +#include +#endif + #include "interface.h" #include "addrtoname.h" #include "ethertype.h" @@ -163,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);