X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=extensions%2Flibip6t_random.c;h=d34a230819154d4f410d4707a39e24d34f923efa;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=5f151eac6c94aafaa2adf7e04bd3dcde4cd0ea31;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libip6t_random.c b/extensions/libip6t_random.c index 5f151ea..d34a230 100644 --- a/extensions/libip6t_random.c +++ b/extensions/libip6t_random.c @@ -52,7 +52,6 @@ static void 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 */ @@ -131,19 +130,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)