diff options
author | melifaro <melifaro@FreeBSD.org> | 2012-06-16 13:51:01 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2012-06-16 13:51:01 +0000 |
commit | 74fbb78fa0d794554e0eecb654bef18029e63997 (patch) | |
tree | f33d23b2f475809ee87d23fee229d7271ac06abb /sys/netgraph | |
parent | 305d7a4ef783ffe90f790067eefdee9bd63056f7 (diff) | |
download | FreeBSD-src-74fbb78fa0d794554e0eecb654bef18029e63997.zip FreeBSD-src-74fbb78fa0d794554e0eecb654bef18029e63997.tar.gz |
Fix improper L4 header handling for IPv6 packets passed via DLT_RAW.
Reported by: Emil Muratov <gpm@hotplug.ru>
Reviewed by: glebius
Approved by: ae(mentor)
MFC after: 1 week
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/netflow/ng_netflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/ng_netflow.c b/sys/netgraph/netflow/ng_netflow.c index 7271362..9e12563 100644 --- a/sys/netgraph/netflow/ng_netflow.c +++ b/sys/netgraph/netflow/ng_netflow.c @@ -712,7 +712,7 @@ ng_netflow_rcvdata (hook_p hook, item_p item) if (ip->ip_v == IP6VERSION) { /* IPv6 packet */ ip = NULL; - M_CHECK(sizeof(struct ip6_hdr)); + M_CHECK(sizeof(struct ip6_hdr) - sizeof(struct ip)); ip6 = mtod(m, struct ip6_hdr *); } #endif |