[NETFILTER]: nf_nat: pass manip type instead of hook to nf_nat_setup_info
[linux-2.6.git] / net / ipv4 / netfilter / ipt_NETMAP.c
index 8b8263e63579d7fab98e3cdf1d51545ca6227083..5b71ef4d848ab9e1036e6e2d7cfed65af826a8a7 100644 (file)
@@ -70,7 +70,7 @@ netmap_tg(struct sk_buff *skb, const struct net_device *in,
                  mr->range[0].min, mr->range[0].max });
 
        /* Hand modified range to generic setup. */
-       return nf_nat_setup_info(ct, &newrange, hooknum);
+       return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(hooknum));
 }
 
 static struct xt_target netmap_tg_reg __read_mostly = {