X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_quota.c;h=a9c138c5d8fdd7b16fd81a3a7f583ec2fe2e1e01;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=078f9e352ba1673a4a5f30cf9052574369ffe4ac;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_quota.c b/extensions/libipt_quota.c index 078f9e3..a9c138c 100644 --- a/extensions/libipt_quota.c +++ b/extensions/libipt_quota.c @@ -24,14 +24,6 @@ help(void) " --quota quota quota (bytes)\n" "\n"); } -/* initialise match */ -static void -init(struct ipt_entry_match *m, unsigned int *nfcache) -{ - /* no can cache */ - *nfcache |= NFC_UNKNOWN; -} - /* print matchinfo */ static void print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric) @@ -93,18 +85,18 @@ final_check(unsigned int flags) { } -struct iptables_match quota = { NULL, - "quota", - IPTABLES_VERSION, - IPT_ALIGN(sizeof (struct ipt_quota_info)), - IPT_ALIGN(sizeof (struct ipt_quota_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +struct iptables_match quota = { + .next = NULL, + .name = "quota", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof (struct ipt_quota_info)), + .userspacesize = IPT_ALIGN(sizeof (struct ipt_quota_info)), + .help = &help, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void