netfilter: synproxy: only register hooks when needed
authorFlorian Westphal <fw@strlen.de>
Wed, 19 Apr 2017 16:14:04 +0000 (18:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Apr 2017 07:30:21 +0000 (09:30 +0200)
commit1fefe14725c7cc7c720f9f8af2bc3bef13fd7d39
tree0d3eee75eef102d294995a7ccca05bf7406c8c51
parent122868b378094853b376f3e2ac833bcee078eb3c
netfilter: synproxy: only register hooks when needed

Defer registration of the synproxy hooks until the first SYNPROXY rule is
added.  Also means we only register hooks in namespaces that need it.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_synproxy.h
net/ipv4/netfilter/ipt_SYNPROXY.c
net/ipv6/netfilter/ip6t_SYNPROXY.c