Re: xtoptions + quota: parse and store 64bit values?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 2011-05-19 05:26, JP Abgrall wrote:

>Without this change, my kernel's xt_quota.c::quota_mt_check() doesn't
>see the 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.

Thanks, taken.


>@@ -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 = {

I replaced this by XTOPT_PUT as it should have been.
--
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


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux