netfilter: conntrack: pass hook state to log functions
authorFlorian Westphal <fw@strlen.de>
Wed, 16 Jun 2021 20:06:19 +0000 (22:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 18 Jun 2021 12:47:43 +0000 (14:47 +0200)
commit62eec0d73393a136b4523952cecbda1438f1f1b9
tree1a2cd862d781eb8ed937637cc97f9a92545bba14
parent836382dc24717af203ce06703530528827086955
netfilter: conntrack: pass hook state to log functions

The packet logger backend is unable to provide the incoming (or
outgoing) interface name because that information isn't available.

Pass the hook state, it contains the network namespace, the protocol
family, the network interfaces and other things.

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_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