summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libip6t_random.c')
-rw-r--r--extensions/libip6t_random.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/extensions/libip6t_random.c b/extensions/libip6t_random.c
index 5f151eac..a4d1d299 100644
--- a/extensions/libip6t_random.c
+++ b/extensions/libip6t_random.c
@@ -131,19 +131,18 @@ save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
printf("--average %u ", result.quot);
}
-struct ip6tables_match rand_match
-= { NULL,
- "random",
- IPTABLES_VERSION,
- IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
- IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+struct ip6tables_match rand_match = {
+ .name = "random",
+ .version = IPTABLES_VERSION,
+ .size = IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
+ .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_rand_info)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print
+ .save = &save,
+ .extra_opts = opts,
};
void _init(void)