iptables-1.3.2-20050720
[iptables.git] / extensions / libipt_quota.c
index 078f9e3..a9c138c 100644 (file)
@@ -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