The xt_quota_info flags should be set properly for the --quota option negation support. Signed-off-by: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx> --- 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/ -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html