[NETFILTER]: Fix multiple bugs in ipv6header match
This patch fixes following bugs in ip6t_ipv6header.c - The cast of the pointer to the next IPv6 extension header is wrong. - The logical operation is wrong. These fixes intends - soft mode without invert flag "!" match if the packet contains all of the specified headers. - soft mode with invert flag "!" match if the packet DOESN'T contain all of the specified headers. - strict mode without invert flag "!" match if the packet contains JUST ONLY the specified headers. if the packet doesn't contain some specified headers or contains unspecified headers, the packet doesn't match with rule. - strict mode with invert flag "!" NOT MATCH if the packet contains JUST ONLY the specified headers. Otherwise, match. So, if the packet contains some specified headers and DOESN'T contain other specified headers, the packet MATCHES with rule. Signed-off-by: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp> Signed-off-by: Patrick McHardy <kaber@trash.net>
Showing
Please register or sign in to comment