summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libxt_quota.c2
-rw-r--r--include/linux/netfilter/xt_quota.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c
index b6bab93a..cfd975d0 100644
--- a/extensions/libxt_quota.c
+++ b/extensions/libxt_quota.c
@@ -83,7 +83,7 @@ static struct xtables_match quota_match = {
.name = "quota",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof (struct xt_quota_info)),
- .userspacesize = offsetof(struct xt_quota_info, quota),
+ .userspacesize = offsetof(struct xt_quota_info, master),
.help = quota_help,
.parse = quota_parse,
.print = quota_print,
diff --git a/include/linux/netfilter/xt_quota.h b/include/linux/netfilter/xt_quota.h
index 8dc89dfc..b0d28c65 100644
--- a/include/linux/netfilter/xt_quota.h
+++ b/include/linux/netfilter/xt_quota.h
@@ -11,9 +11,9 @@ struct xt_quota_priv;
struct xt_quota_info {
u_int32_t flags;
u_int32_t pad;
+ aligned_u64 quota;
/* Used internally by the kernel */
- aligned_u64 quota;
struct xt_quota_priv *master;
};