[netfilter-cvslog] r6931 - trunk/iptables/extensions

yasuyuki at netfilter.org yasuyuki at netfilter.org
Tue Jul 24 08:41:01 CEST 2007


Author: yasuyuki at netfilter.org
Date: 2007-07-24 08:41:01 +0200 (Tue, 24 Jul 2007)
New Revision: 6931

Modified:
   trunk/iptables/extensions/libipt_NOTRACK.c
Log:
Use unified API in NOTRACK target.



Modified: trunk/iptables/extensions/libipt_NOTRACK.c
===================================================================
--- trunk/iptables/extensions/libipt_NOTRACK.c	2007-07-24 06:39:40 UTC (rev 6930)
+++ trunk/iptables/extensions/libipt_NOTRACK.c	2007-07-24 06:41:01 UTC (rev 6931)
@@ -4,8 +4,8 @@
 #include <stdlib.h>
 #include <getopt.h>
 
-#include <iptables.h>
-#include <linux/netfilter_ipv4/ip_tables.h>
+#include <xtables.h>
+#include <linux/netfilter/x_tables.h>
 
 /* Function which prints out usage message. */
 static void
@@ -42,22 +42,21 @@
 }
 
 static
-struct iptables_target notrack 
-= {	.next = NULL,
-	.name = "NOTRACK",
-	.version = IPTABLES_VERSION,
-	.size = IPT_ALIGN(0),
-	.userspacesize = IPT_ALIGN(0),
-	.help = &help,
-	.init = &init,
-	.parse = &parse,
-	.final_check = &final_check,
-	.print = NULL, /* print */
-	.save = NULL, /* save */
-	.extra_opts = opts
+struct xtables_target notrack =
+{
+	.family		= AF_INET,
+	.name		= "NOTRACK",
+	.version	= IPTABLES_VERSION,
+	.size		= XT_ALIGN(0),
+	.userspacesize	= XT_ALIGN(0),
+	.help		= &help,
+	.init		= &init,
+	.parse		= &parse,
+	.final_check	= &final_check,
+	.extra_opts	= opts,
 };
 
 void _init(void)
 {
-	register_target(&notrack);
+	xtables_register_target(&notrack);
 }




More information about the netfilter-cvslog mailing list