netfilter: conntrack: add and use nf_ct_l4proto_log_invalid
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Oct 2017 08:47:41 +0000 (10:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2017 16:01:49 +0000 (18:01 +0200)
commit3d0b527bc9dc0e8c4428eb1a98d4cd27bd1114c7
treef86b25d3345cfc1763cac0be4278b26c20051474
parentc4f3db15958277c03d1c324894255ea3ecbf86e1
netfilter: conntrack: add and use nf_ct_l4proto_log_invalid

We currently pass down the l4 protocol to the conntrack ->packet()
function, but the only user of this is the debug info decision.

Same information can be derived from struct nf_conn.
Add a wrapper for the previous patch that extracs the information
from nf_conn and passes it to nf_l4proto_log_invalid().

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.c
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_conntrack_proto_tcp.c