]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ip6table_raw: fix table priority
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 25 Mar 2010 10:17:26 +0000 (11:17 +0100)
committerPatrick McHardy <kaber@trash.net>
Thu, 25 Mar 2010 10:17:26 +0000 (11:17 +0100)
commitcc8730ab879319724605ffe72e83fdcc230b8596
treeedbcf36e1861c0c65ef0d1f0c0c1324da79d2f53
parent7c0e8da613f7f8d9496a8746859b3eaf926a93a6
netfilter: ip6table_raw: fix table priority

The order of the IPv6 raw table is currently reversed, that makes impossible
to use the NOTRACK target in IPv6: for example if someone enters

ip6tables -t raw -A PREROUTING -p tcp --dport 80 -j NOTRACK

and if we receive fragmented packets then the first fragment will be
untracked and thus skip nf_ct_frag6_gather (and conntrack), while all
subsequent fragments enter nf_ct_frag6_gather and reassembly will never
successfully be finished.

Singed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter_ipv6.h
net/ipv6/netfilter/ip6table_raw.c