diff options
author | Máté Eckl <ecklm94@gmail.com> | 2018-06-18 15:12:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-16 17:51:48 +0200 |
commit | f286586df68e7733a8e651098401f139dc2e17f4 (patch) | |
tree | 8cd74cbc238a279aae7e8e85300530977121a6a2 /net | |
parent | e97d9404d5e8aea1f91f4c00dbe7854008f3a1e1 (diff) | |
download | linux-f286586df68e7733a8e651098401f139dc2e17f4.tar.gz linux-f286586df68e7733a8e651098401f139dc2e17f4.tar.bz2 linux-f286586df68e7733a8e651098401f139dc2e17f4.zip |
netfilter: nft_tproxy: Move nf_tproxy_assign_sock() to nf_tproxy.h
This function is also necessary to implement nft tproxy support
Fixes: 45ca4e0cf273 ("netfilter: Libify xt_TPROXY")
Signed-off-by: Máté Eckl <ecklm94@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/xt_TPROXY.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/netfilter/xt_TPROXY.c b/net/netfilter/xt_TPROXY.c index 58fce4e749a9..35df0827e2ca 100644 --- a/net/netfilter/xt_TPROXY.c +++ b/net/netfilter/xt_TPROXY.c @@ -36,15 +36,6 @@ #include <net/netfilter/nf_tproxy.h> #include <linux/netfilter/xt_TPROXY.h> -/* assign a socket to the skb -- consumes sk */ -static void -nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) -{ - skb_orphan(skb); - skb->sk = sk; - skb->destructor = sock_edemux; -} - static unsigned int tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport, u_int32_t mark_mask, u_int32_t mark_value) |