init(struct ip6t_entry_match *m, unsigned int *nfcache)
{
struct ip6t_rand_info *randinfo = (struct ip6t_rand_info *)(m)->data;
- *nfcache |= NFC_UNKNOWN;
/* We assign the average to be 50 which is our default value */
/* 50 * 2.55 = 128 */
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)