OSDN Git Service

netfilter: Libify xt_TPROXY
authorMáté Eckl <ecklm94@gmail.com>
Fri, 1 Jun 2018 18:44:56 +0000 (20:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 2 Jun 2018 22:02:05 +0000 (00:02 +0200)
commit45ca4e0cf2734f8cc14b43e47c23618215abf1b8
tree5772c57c59d7d30743a4175ff6dc15c1d2234526
parent8d6e555773690e6fdefd99723fcd0a7e432c0c90
netfilter: Libify xt_TPROXY

The extracted functions will likely be usefull to implement tproxy
support in nf_tables.

Extrancted functions:
- nf_tproxy_sk_is_transparent
- nf_tproxy_laddr4
- nf_tproxy_handle_time_wait4
- nf_tproxy_get_sock_v4
- nf_tproxy_laddr6
- nf_tproxy_handle_time_wait6
- nf_tproxy_get_sock_v6

(nf_)tproxy_handle_time_wait6 also needed some refactor as its current
implementation was xtables-specific.

Signed-off-by: Máté Eckl <ecklm94@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tproxy.h [new file with mode: 0644]
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/nf_tproxy_ipv4.c [new file with mode: 0644]
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/Makefile
net/ipv6/netfilter/nf_tproxy_ipv6.c [new file with mode: 0644]
net/netfilter/Kconfig
net/netfilter/xt_TPROXY.c