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>
Showing
- include/net/netfilter/nf_tproxy.h 113 additions, 0 deletionsinclude/net/netfilter/nf_tproxy.h
- net/ipv4/netfilter/Kconfig 4 additions, 1 deletionnet/ipv4/netfilter/Kconfig
- net/ipv4/netfilter/Makefile 1 addition, 0 deletionsnet/ipv4/netfilter/Makefile
- net/ipv4/netfilter/nf_tproxy_ipv4.c 147 additions, 0 deletionsnet/ipv4/netfilter/nf_tproxy_ipv4.c
- net/ipv6/netfilter/Kconfig 4 additions, 1 deletionnet/ipv6/netfilter/Kconfig
- net/ipv6/netfilter/Makefile 1 addition, 0 deletionsnet/ipv6/netfilter/Makefile
- net/ipv6/netfilter/nf_tproxy_ipv6.c 146 additions, 0 deletionsnet/ipv6/netfilter/nf_tproxy_ipv6.c
- net/netfilter/Kconfig 2 additions, 0 deletionsnet/netfilter/Kconfig
- net/netfilter/xt_TPROXY.c 18 additions, 337 deletionsnet/netfilter/xt_TPROXY.c
Loading
Please register or sign in to comment