diff options
author | 2000-04-26 21:35:36 +0000 | |
---|---|---|
committer | 2000-04-26 21:35:36 +0000 | |
commit | edd7aa8f67df825a965c4ef6f0e226f29443ab4c (patch) | |
tree | a2ae67108629743ed0713cf19ec6c5c80a139c8c /usr.sbin/tcpdump/print-ether.c | |
parent | remove debug (diff) | |
download | wireguard-openbsd-edd7aa8f67df825a965c4ef6f0e226f29443ab4c.tar.xz wireguard-openbsd-edd7aa8f67df825a965c4ef6f0e226f29443ab4c.zip |
INET6
DHCP/BOOTP
tcp & udp checksum detection
numerous bugfixes
Diffstat (limited to 'usr.sbin/tcpdump/print-ether.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ether.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ether.c b/usr.sbin/tcpdump/print-ether.c index 1a1afed6f19..3866af85945 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: /home/cvs/src/usr.sbin/tcpdump/print-ether.c,v 1.14 2000/03/07 18:16:37 chris Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ether.c,v 1.15 2000/04/26 21:35:40 jakob Exp $ (LBL)"; #endif #include <sys/param.h> @@ -41,11 +41,14 @@ struct rtentry; #include <netinet/udp.h> #include <netinet/udp_var.h> #include <netinet/tcp.h> -#include <netinet/tcpip.h> #include <stdio.h> #include <pcap.h> +#ifdef INET6 +#include <netinet/ip6.h> +#endif + #include "interface.h" #include "addrtoname.h" #include "ethertype.h" @@ -166,6 +169,12 @@ recurse: 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); |