extensions: libxt_quota.c: Support option negation
PATCH 1/1 extensions: libxt_quota.c: Support option negation
The xt_quota_info flags should be set properly for the --quota option negation support.
Signed-off-by Samuel Ortiz <[email protected]>
--- extensions/libxt_quota.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
extensions/libxt_quota.c +4 -0
@@ -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 :
Signature · 5 lines
1.7.1 -- Intel Open Source Technology Centre http://oss.intel.com/
Quoted 5 lines · ext Samuel Ortiz
The
xt_quota_infoflags should be set properly for the --quota option negation support.Signed-off-by Samuel Ortiz <[email protected]>---
Nice catch! I was trying this yesterday after our discussion and couldn't get it to work. Didn't have the time to investigate the problem, good that you did :)
Tested-by Luciano Coelho <[email protected]>
Signature · 2 lines
Cheers, Luca.
Patrick McHardy
AppliedQuoted 2 lines · Samuel Ortiz
The
xt_quota_infoflags should be set properly for the --quota option negation support.
Applied, thanks.