summaryrefslogtreecommitdiffstats
path: root/net/ipv6/netfilter/ip6t_SYNPROXY.c
diff options
context:
space:
mode:
authorEric W. Biederman2015-09-16 03:04:17 +0200
committerDavid S. Miller2015-09-18 02:18:37 +0200
commit9dff2c966a0a79a4222553a851f17e679fc28a43 (patch)
treed86e10d6bf21cfcefd4f6eeaa783d24563456d8f /net/ipv6/netfilter/ip6t_SYNPROXY.c
parentnetfilter: Pass struct net into the netfilter hooks (diff)
downloadkernel-qcow2-linux-9dff2c966a0a79a4222553a851f17e679fc28a43.tar.gz
kernel-qcow2-linux-9dff2c966a0a79a4222553a851f17e679fc28a43.tar.xz
kernel-qcow2-linux-9dff2c966a0a79a4222553a851f17e679fc28a43.zip
netfilter: Use nf_hook_state.net
Instead of saying "net = dev_net(state->in?state->in:state->out)" just say "state->net". As that information is now availabe, much less confusing and much less error prone. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_SYNPROXY.c')
-rw-r--r--net/ipv6/netfilter/ip6t_SYNPROXY.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_SYNPROXY.c b/net/ipv6/netfilter/ip6t_SYNPROXY.c
index 1e4bf99ed16e..4c9f3e79d75f 100644
--- a/net/ipv6/netfilter/ip6t_SYNPROXY.c
+++ b/net/ipv6/netfilter/ip6t_SYNPROXY.c
@@ -320,7 +320,7 @@ static unsigned int ipv6_synproxy_hook(const struct nf_hook_ops *ops,
struct sk_buff *skb,
const struct nf_hook_state *nhs)
{
- struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out));
+ struct synproxy_net *snet = synproxy_pernet(nhs->net);
enum ip_conntrack_info ctinfo;
struct nf_conn *ct;
struct nf_conn_synproxy *synproxy;