From: Samuel Ortiz <sameo@linux.intel.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] extensions: libxt_quota.c: Support option negation
Date: Thu, 1 Jul 2010 11:35:07 +0200 [thread overview]
Message-ID: <20100701093506.GA3309@sortiz-mobl> (raw)
The xt_quota_info flags should be set properly for the --quota option negation
support.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
extensions/libxt_quota.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c
index 69d2746..bdfc92a 100644
--- a/extensions/libxt_quota.c
+++ b/extensions/libxt_quota.c
@@ -65,6 +65,10 @@ quota_parse(int c, char **argv, int invert, unsigned int *flags,
if (!parse_quota(optarg, &info->quota))
xtables_error(PARAMETER_PROBLEM,
"bad quota: '%s'", optarg);
+
+ if (invert)
+ info->flags |= XT_QUOTA_INVERT;
+
break;
default:
--
1.7.1
--
Intel Open Source Technology Centre
http://oss.intel.com/
next reply other threads:[~2010-07-01 9:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 9:35 Samuel Ortiz [this message]
2010-07-01 11:10 ` [PATCH] extensions: libxt_quota.c: Support option negation Luciano Coelho
2010-07-02 7:57 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100701093506.GA3309@sortiz-mobl \
--to=sameo@linux.intel.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).