]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - include/net/netfilter/nf_conntrack_l4proto.h
netfilter: conntrack: deconstify packet callback skb pointer
authorFlorian Westphal <fw@strlen.de>
Wed, 12 Sep 2018 13:19:09 +0000 (15:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Sep 2018 16:02:22 +0000 (18:02 +0200)
commit83d213fd9d1a56108584cd812333462caa39a747
tree09dc6446cc341d9ba55e160e2e3cd696738f0302
parent9976fc6e6edbb0372f084a2ae8c1b8103b3bff1d
netfilter: conntrack: deconstify packet callback skb pointer

Only two protocols need the ->error() function: icmp and icmpv6.
This is because icmp error mssages might be RELATED to an existing
connection (e.g. PMTUD, port unreachable and the like), and their
->error() handlers do this.

The error callback is already optional, so remove it for
udp and call them from ->packet() instead.

As the error() callback can call checksum functions that write to
skb->csum*, the const qualifier has to be removed as well.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l4proto.h
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_conntrack_proto_generic.c
net/netfilter/nf_conntrack_proto_gre.c
net/netfilter/nf_conntrack_proto_icmp.c
net/netfilter/nf_conntrack_proto_icmpv6.c
net/netfilter/nf_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_udp.c