netfilter: Use nf_hook_state.net
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / netfilter / ip6t_SYNPROXY.c
index 1e4bf99ed16e68c68ca87e997895f66dbca4e789..4c9f3e79d75f1185d5ccec41184fec1b9ae4f83f 100644 (file)
@@ -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;