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_TOS.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'extensions/libxt_TOS.c') diff --git a/extensions/libxt_TOS.c b/extensions/libxt_TOS.c index c08f53bd..e6382e14 100644 --- a/extensions/libxt_TOS.c +++ b/extensions/libxt_TOS.c @@ -224,22 +224,7 @@ static struct xtables_target tos_tg_reg = { .version = XTABLES_VERSION, .name = "TOS", .revision = 1, - .family = NFPROTO_IPV4, - .size = XT_ALIGN(sizeof(struct xt_tos_target_info)), - .userspacesize = XT_ALIGN(sizeof(struct xt_tos_target_info)), - .help = tos_tg_help, - .parse = tos_tg_parse, - .final_check = tos_tg_check, - .print = tos_tg_print, - .save = tos_tg_save, - .extra_opts = tos_tg_opts, -}; - -static struct xtables_target tos_tg6_reg = { - .version = XTABLES_VERSION, - .name = "TOS", - .family = NFPROTO_IPV6, - .revision = 1, + .family = NFPROTO_UNSPEC, .size = XT_ALIGN(sizeof(struct xt_tos_target_info)), .userspacesize = XT_ALIGN(sizeof(struct xt_tos_target_info)), .help = tos_tg_help, @@ -254,5 +239,4 @@ void _init(void) { xtables_register_target(&tos_tg_reg_v0); xtables_register_target(&tos_tg_reg); - xtables_register_target(&tos_tg6_reg); } -- cgit v1.2.3