diff options
| author | 2010-04-06 16:01:57 +0000 | |
|---|---|---|
| committer | 2010-04-06 16:01:57 +0000 | |
| commit | acb63ff2e1f4fe8746769e153e472054575a19ca (patch) | |
| tree | 46ca37b80f3342f96a944b29c5e64ec351f5a17c /usr.sbin/tcpdump/print-ip6.c | |
| parent | A fix for the PCI-X check so that this is only tested on controllers (diff) | |
| download | wireguard-openbsd-acb63ff2e1f4fe8746769e153e472054575a19ca.tar.xz wireguard-openbsd-acb63ff2e1f4fe8746769e153e472054575a19ca.zip | |
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-ip6.c')
| -rw-r--r-- | usr.sbin/tcpdump/print-ip6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ip6.c b/usr.sbin/tcpdump/print-ip6.c index b9ef3df0e34..7f809c9954c 100644 --- a/usr.sbin/tcpdump/print-ip6.c +++ b/usr.sbin/tcpdump/print-ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ip6.c,v 1.12 2009/11/27 13:14:35 bluhm Exp $ */ +/* $OpenBSD: print-ip6.c,v 1.13 2010/04/06 16:01:57 jsg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 @@ -161,7 +161,8 @@ ip6_print(register const u_char *bp, register int length) (const u_char *)ip6); goto end; case IPPROTO_ICMPV6: - icmp6_print(cp, (const u_char *)ip6); + icmp6_print(cp, len + sizeof(struct ip6_hdr) - (cp - bp), + (const u_char *)ip6); goto end; case IPPROTO_PIM: (void)printf("PIM"); |
