diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-04-06 16:01:58 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-04-06 16:01:58 +0000 |
commit | 216d3d4bb3769339d476f6a8a3469817083712f5 (patch) | |
tree | d5ee1f222b72dd49b30ad77f67ecdc0d49f4e5e5 /usr.sbin/tcpdump/print-ipsec.c | |
parent | 10b632d51941a9fda8546c12c9a98f4dccecff8f (diff) |
Add support for decoding MLDv2 initially from tcpdump.org via FreeBSD,
cleaned up to be less gross after some suggestions from stsp.
ok stsp@
Diffstat (limited to 'usr.sbin/tcpdump/print-ipsec.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ipsec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ipsec.c b/usr.sbin/tcpdump/print-ipsec.c index 5e332fd5658..5e8eea70d26 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.15 2009/11/11 13:23:01 jsg Exp $ */ +/* $OpenBSD: print-ipsec.c,v 1.16 2010/04/06 16:01:57 jsg Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 @@ -190,7 +190,7 @@ esp_decrypt (const u_char *bp, u_int len, const u_char *bp2) icmp_print(data, bp2); break; case IPPROTO_ICMPV6: - icmp6_print(data, bp2); + icmp6_print(data, len, bp2); break; default: printf("ip-proto-%d %d", nh, len); @@ -302,7 +302,8 @@ ah_print (register const u_char *bp, register u_int len, break; case IPPROTO_ICMPV6: - icmp6_print(bp + pl_len, (const u_char *) ip); + icmp6_print(bp + pl_len, len - pl_len, + (const u_char *) ip); break; case IPPROTO_TCP: |