diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-06-12 20:55:44 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-06-26 21:13:09 +0200 |
commit | c5e85736c207f211d82d2878a5781f512327dfce (patch) | |
tree | 38e324d6ae9697bf3bba4c9110308a2e9e42b0bf /extensions/libxt_MARK.c | |
parent | cc4344042e8c0bb6eef877975588321aa152660d (diff) |
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 <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_MARK.c')
-rw-r--r-- | extensions/libxt_MARK.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/extensions/libxt_MARK.c b/extensions/libxt_MARK.c index ff48a764..cab052ba 100644 --- a/extensions/libxt_MARK.c +++ b/extensions/libxt_MARK.c @@ -278,7 +278,7 @@ static void mark_tg_save(const void *ip, const struct xt_entry_target *target) } static struct xtables_target mark_target_v0 = { - .family = NFPROTO_IPV4, + .family = NFPROTO_UNSPEC, .name = "MARK", .version = XTABLES_VERSION, .revision = 0, @@ -307,21 +307,6 @@ static struct xtables_target mark_target_v1 = { .extra_opts = MARK_opts, }; -static struct xtables_target mark_target6_v0 = { - .family = NFPROTO_IPV6, - .name = "MARK", - .version = XTABLES_VERSION, - .revision = 0, - .size = XT_ALIGN(sizeof(struct xt_mark_target_info)), - .userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info)), - .help = MARK_help, - .parse = MARK_parse_v0, - .final_check = MARK_check, - .print = MARK_print_v0, - .save = MARK_save_v0, - .extra_opts = MARK_opts, -}; - static struct xtables_target mark_tg_reg_v2 = { .version = XTABLES_VERSION, .name = "MARK", @@ -341,6 +326,5 @@ void _init(void) { xtables_register_target(&mark_target_v0); xtables_register_target(&mark_target_v1); - xtables_register_target(&mark_target6_v0); xtables_register_target(&mark_tg_reg_v2); } |