diff options
author | 2006-12-26 06:24:48 +0000 | |
---|---|---|
committer | 2006-12-26 06:24:48 +0000 | |
commit | 6ab1e1bc521f4537e00af32b92ee01192cfb1fa7 (patch) | |
tree | 3a728b720bbaa79f7274b7f057eccd4279d66b57 /usr.sbin/tcpdump/print-ipsec.c | |
parent | Add missing $OpenBSD$ (diff) | |
download | wireguard-openbsd-6ab1e1bc521f4537e00af32b92ee01192cfb1fa7.tar.xz wireguard-openbsd-6ab1e1bc521f4537e00af32b92ee01192cfb1fa7.zip |
print icmpv6 inside security header (ah/esp).
Diffstat (limited to 'usr.sbin/tcpdump/print-ipsec.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ipsec.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ipsec.c b/usr.sbin/tcpdump/print-ipsec.c index 4fefcefb9c2..dd56aa949ab 100644 --- a/usr.sbin/tcpdump/print-ipsec.c +++ b/usr.sbin/tcpdump/print-ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ipsec.c,v 1.9 2006/09/19 14:25:04 naddy Exp $ */ +/* $OpenBSD: print-ipsec.c,v 1.10 2006/12/26 06:24:48 itojun Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ipsec.c,v 1.9 2006/09/19 14:25:04 naddy Exp $ (XXX)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ipsec.c,v 1.10 2006/12/26 06:24:48 itojun Exp $ (XXX)"; #endif #include <sys/param.h> @@ -192,6 +192,9 @@ esp_decrypt (const u_char *bp, u_int len, const u_char *bp2) case IPPROTO_ICMP: icmp_print(data, bp2); break; + case IPPROTO_ICMPV6: + icmp6_print(data, bp2); + break; default: printf("ip-proto-%d %d", nh, len); break; @@ -301,6 +304,10 @@ ah_print (register const u_char *bp, register u_int len, icmp_print(bp + pl_len, (const u_char *) ip); break; + case IPPROTO_ICMPV6: + icmp6_print(bp + pl_len, (const u_char *) ip); + break; + case IPPROTO_TCP: tcp_print(bp + pl_len, len - pl_len, (const u_char *) ip); |