summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-07-23 14:07:47 +0200
committerPatrick McHardy <kaber@trash.net>2010-07-23 14:07:47 +0200
commit49daf6a22622d4e1619aeaad5f9f0472bf89daff (patch)
treea86af0b0f846fc187eaa45ffdad96976bfd38331 /net
parentb0c81aa566cccbe26bd99237873fb8428827d82f (diff)
downloadop-kernel-dev-49daf6a22622d4e1619aeaad5f9f0472bf89daff.zip
op-kernel-dev-49daf6a22622d4e1619aeaad5f9f0472bf89daff.tar.gz
xt_quota: report initial quota value instead of current value to userspace
We should copy the initial value to userspace for iptables-save and to allow removal of specific quota rules. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/xt_quota.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netfilter/xt_quota.c b/net/netfilter/xt_quota.c
index 304b1fd..70eb2b4 100644
--- a/net/netfilter/xt_quota.c
+++ b/net/netfilter/xt_quota.c
@@ -36,8 +36,6 @@ quota_mt(const struct sk_buff *skb, struct xt_action_param *par)
/* we do not allow even small packets from now on */
priv->quota = 0;
}
- /* Copy quota back to matchinfo so that iptables can display it */
- q->quota = priv->quota;
spin_unlock_bh(&priv->lock);
return ret;
OpenPOWER on IntegriCloud