aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/libxt_quota.c
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-05-18 20:19:39 -0700
committerJP Abgrall <jpa@google.com>2011-05-18 20:19:39 -0700
commitb65b9fe5096bd49a9ec2f0f6c2f23d274cfc88ee (patch)
treedf4d228c91a49943385ff9b8c80b7c65d1646dec /extensions/libxt_quota.c
parent59ce5bd1d05225911051a4c46ce5ccdd7c1ed078 (diff)
downloadplatform_external_iptables-b65b9fe5096bd49a9ec2f0f6c2f23d274cfc88ee.tar.gz
platform_external_iptables-b65b9fe5096bd49a9ec2f0f6c2f23d274cfc88ee.tar.bz2
platform_external_iptables-b65b9fe5096bd49a9ec2f0f6c2f23d274cfc88ee.zip
xtoptions + quota: parse and store 64bit values
The xtables_strtoul() would cram a long long into a long. The parse_int would try to cram a UINT64 into a long. The quota_parse would just ignore whatever value was parsed. Change-Id: Ie1f05e98e974a255d962dd757a5592458f942f8b
Diffstat (limited to 'extensions/libxt_quota.c')
-rw-r--r--extensions/libxt_quota.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c
index 988f404f..dc9b3b07 100644
--- a/extensions/libxt_quota.c
+++ b/extensions/libxt_quota.c
@@ -47,6 +47,7 @@ static void quota_parse(struct xt_option_call *cb)
xtables_option_parse(cb);
if (cb->invert)
info->flags |= XT_QUOTA_INVERT;
+ info->quota = cb->val.u64;
}
static struct xtables_match quota_match = {