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

kaber at trash.net kaber at trash.net
Thu Oct 4 18:25:23 CEST 2007


Author: kaber at trash.net
Date: 2007-10-04 18:25:23 +0200 (Thu, 04 Oct 2007)
New Revision: 7056

Modified:
   trunk/iptables/extensions/libip6t_eui64.c
   trunk/iptables/extensions/libipt_unclean.c
   trunk/iptables/extensions/libxt_TRACE.c
   trunk/iptables/extensions/libxt_standard.c
Log:
[PATCH 04/14] Delete empty ->print() and ->save() functions

Deletes empty ->print() and ->save() functions.
ip[6]tables prints the trivial thing automatically.

Signed-off-by: Jan Engelhardt <jengelh at gmx.de>


Modified: trunk/iptables/extensions/libip6t_eui64.c
===================================================================
--- trunk/iptables/extensions/libip6t_eui64.c	2007-10-04 16:24:50 UTC (rev 7055)
+++ trunk/iptables/extensions/libip6t_eui64.c	2007-10-04 16:25:23 UTC (rev 7056)
@@ -32,21 +32,6 @@
 	return 0;
 }
 
-/* Prints out the matchinfo. */
-static void
-print(const void *ip,
-      const struct xt_entry_match *match,
-      int numeric)
-{
-	printf("eui64 ");
-}
-
-/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const void *ip, const struct xt_entry_match *match)
-{
-
-}
-
 static struct ip6tables_match eui64 = {
 	.name 		= "eui64",
 	.version	= IPTABLES_VERSION,
@@ -54,8 +39,6 @@
 	.userspacesize	= IP6T_ALIGN(sizeof(int)),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= &print,
-	.save		= &save,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libipt_unclean.c
===================================================================
--- trunk/iptables/extensions/libipt_unclean.c	2007-10-04 16:24:50 UTC (rev 7055)
+++ trunk/iptables/extensions/libipt_unclean.c	2007-10-04 16:25:23 UTC (rev 7056)
@@ -31,8 +31,6 @@
 	.userspacesize	= IPT_ALIGN(0),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= NULL,
-	.save		= NULL,
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libxt_TRACE.c
===================================================================
--- trunk/iptables/extensions/libxt_TRACE.c	2007-10-04 16:24:50 UTC (rev 7055)
+++ trunk/iptables/extensions/libxt_TRACE.c	2007-10-04 16:25:23 UTC (rev 7056)
@@ -34,8 +34,6 @@
 	.userspacesize	= XT_ALIGN(0),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= NULL, /* print */
-	.save		= NULL, /* save */
 };
 
 static struct xtables_target trace6 = {
@@ -46,8 +44,6 @@
 	.userspacesize	= XT_ALIGN(0),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= NULL, /* print */
-	.save		= NULL, /* save */
 };
 
 void _init(void)

Modified: trunk/iptables/extensions/libxt_standard.c
===================================================================
--- trunk/iptables/extensions/libxt_standard.c	2007-10-04 16:24:50 UTC (rev 7055)
+++ trunk/iptables/extensions/libxt_standard.c	2007-10-04 16:25:23 UTC (rev 7056)
@@ -26,12 +26,6 @@
 	return 0;
 }
 
-/* Saves the targinfo in parsable form to stdout. */
-static void
-save(const void *ip, const struct xt_entry_target *target)
-{
-}
-
 static
 struct xtables_target standard = { 
 	.family		= AF_INET,
@@ -41,8 +35,6 @@
 	.userspacesize	= XT_ALIGN(sizeof(int)),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= NULL,
-	.save		= &save,
 };
 
 static
@@ -54,8 +46,6 @@
 	.userspacesize	= XT_ALIGN(sizeof(int)),
 	.help		= &help,
 	.parse		= &parse,
-	.print		= NULL,
-	.save		= &save,
 };
 
 void _init(void)




More information about the netfilter-cvslog mailing list