From c5e85736c207f211d82d2878a5781f512327dfce Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 12 Jun 2009 20:55:44 +0200 Subject: extensions: collapse registration structures There are no different code paths between IPV4 and IPV6, so data can be consolidated here. text data bss dec hex filename 243757 12212 2576 258545 3f1f1 ip6tables-static[before.i586] 243613 9428 2576 255617 3e681 ip6tables-static[after.i586] -144 -2784 Signed-off-by: Jan Engelhardt --- extensions/libxt_comment.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'extensions/libxt_comment.c') diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c index 5f393bbf..2e665b12 100644 --- a/extensions/libxt_comment.c +++ b/extensions/libxt_comment.c @@ -89,21 +89,7 @@ comment_save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match comment_match = { - .family = NFPROTO_IPV4, - .name = "comment", - .version = XTABLES_VERSION, - .size = XT_ALIGN(sizeof(struct xt_comment_info)), - .userspacesize = XT_ALIGN(sizeof(struct xt_comment_info)), - .help = comment_help, - .parse = comment_parse, - .final_check = comment_check, - .print = comment_print, - .save = comment_save, - .extra_opts = comment_opts, -}; - -static struct xtables_match comment_match6 = { - .family = NFPROTO_IPV6, + .family = NFPROTO_UNSPEC, .name = "comment", .version = XTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_comment_info)), @@ -119,5 +105,4 @@ static struct xtables_match comment_match6 = { void _init(void) { xtables_register_match(&comment_match); - xtables_register_match(&comment_match6); } -- cgit v1.2.3