netfilter: conntrack: avoid using ->error callback if possible
authorFlorian Westphal <fw@strlen.de>
Wed, 12 Sep 2018 13:19:10 +0000 (15:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Sep 2018 16:02:42 +0000 (18:02 +0200)
commit0150ffbac78318549bf4818ddee3481d87100928
tree99435093499e13fa60cdef49b4044c6642b88828
parent83d213fd9d1a56108584cd812333462caa39a747
netfilter: conntrack: avoid using ->error callback if possible

The error() handler gets called before allocating or looking up a
connection tracking entry.

We can instead use direct calls from the ->packet() handlers which get
invoked for every packet anyway.

Only exceptions are icmp and icmpv6, these two special cases will be
handled in the next patch.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_tcp.c