Skip to content

Commit

Permalink
Fix improper L4 header handling for IPv6 packets passed via DLT_RAW.
Browse files Browse the repository at this point in the history
Reported by:     Emil Muratov <gpm@hotplug.ru>
Reviewed by:     glebius
Approved by:     ae(mentor)
MFC after:       1 week
  • Loading branch information
AlexanderChernikov committed Jun 16, 2012
1 parent 342df23 commit 4410e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netgraph/netflow/ng_netflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4410e0b

Please sign in to comment.