netfilter: Make nf_hookfn use nf_hook_state.
[deliverable/linux.git] / net / ipv4 / netfilter / ipt_SYNPROXY.c
index a313c3fbeb469e0594b2f7bccd788d687184bc61..e9e67793055fce9b20ee836275a3eb4a9437592a 100644 (file)
@@ -300,11 +300,9 @@ synproxy_tg4(struct sk_buff *skb, const struct xt_action_param *par)
 
 static unsigned int ipv4_synproxy_hook(const struct nf_hook_ops *ops,
                                       struct sk_buff *skb,
-                                      const struct net_device *in,
-                                      const struct net_device *out,
-                                      int (*okfn)(struct sk_buff *))
+                                      const struct nf_hook_state *nhs)
 {
-       struct synproxy_net *snet = synproxy_pernet(dev_net(in ? : out));
+       struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out));
        enum ip_conntrack_info ctinfo;
        struct nf_conn *ct;
        struct nf_conn_synproxy *synproxy;
This page took 0.026749 seconds and 5 git commands to generate.