]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack_defrag: check socket type before touching nodefrag flag
authorJiri Olsa <jolsa@redhat.com>
Tue, 21 Sep 2010 21:17:34 +0000 (21:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Sep 2010 20:13:34 +0000 (13:13 -0700)
commit13ce94c48da19940115275a42ba41a7e7530088e
tree7a15d114613de0e8e374151628102a76562ebbbd
parent3372886a4cb9c1dcf40cf8410621c9291c4e6340
netfilter: nf_conntrack_defrag: check socket type before touching nodefrag flag

we need to check proper socket type within ipv4_conntrack_defrag
function before referencing the nodefrag flag.

For example the tun driver receive path produces skbs with
AF_UNSPEC socket type, and so current code is causing unwanted
fragmented packets going out.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_defrag_ipv4.c