netfilter: tproxy: remove nf_tproxy_core, keep tw sk assigned to skb
authorFlorian Westphal <fw@strlen.de>
Mon, 29 Jul 2013 13:41:52 +0000 (15:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 31 Jul 2013 14:39:40 +0000 (16:39 +0200)
commitfd158d79d33d3c8b693e3e2d8c0e3068d529c2dc
tree3dce8e6eb4f057fc2924da1535ef5ac10c78be5c
parent957bec36855f97cc5797fbaaf68b11ac7454df2d
netfilter: tproxy: remove nf_tproxy_core, keep tw sk assigned to skb

The module was "permanent", due to the special tproxy skb->destructor.
Nowadays we have tcp early demux and its sock_edemux destructor in
networking core which can be used instead.

Thanks to early demux changes the input path now also handles
"skb->sk is tw socket" correctly, so this no longer needs the special
handling introduced with commit d503b30bd648b3cb4e5f50b65d27e389960cc6d9
(netfilter: tproxy: do not assign timewait sockets to skb->sk).

Thus:
- move assign_sock function to where its needed
- don't prevent timewait sockets from being assigned to the skb
- remove nf_tproxy_core.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Documentation/networking/tproxy.txt
include/net/netfilter/nf_tproxy_core.h
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/nf_tproxy_core.c [deleted file]
net/netfilter/xt_TPROXY.c