[NETFILTER]: {ip,ip6}_tables: remove x_tables wrapper functions
[safe/jmp/linux-2.6] / net / ipv4 / netfilter / ipt_SAME.c
index 3dcf294..a1cdd12 100644 (file)
@@ -34,6 +34,7 @@
 #include <net/protocol.h>
 #include <net/checksum.h>
 #include <linux/netfilter_ipv4.h>
+#include <linux/netfilter/x_tables.h>
 #ifdef CONFIG_NF_NAT_NEEDED
 #include <net/netfilter/nf_nat_rule.h>
 #else
@@ -186,8 +187,9 @@ same_target(struct sk_buff **pskb,
        return ip_nat_setup_info(ct, &newrange, hooknum);
 }
 
-static struct ipt_target same_reg = { 
+static struct xt_target same_reg = {
        .name           = "SAME",
+       .family         = AF_INET,
        .target         = same_target,
        .targetsize     = sizeof(struct ipt_same_info),
        .table          = "nat",
@@ -199,12 +201,12 @@ static struct ipt_target same_reg = {
 
 static int __init ipt_same_init(void)
 {
-       return ipt_register_target(&same_reg);
+       return xt_register_target(&same_reg);
 }
 
 static void __exit ipt_same_fini(void)
 {
-       ipt_unregister_target(&same_reg);
+       xt_unregister_target(&same_reg);
 }
 
 module_init(ipt_same_init);