Commit bfe7cfb6 authored by Zhongqiu Duan's avatar Zhongqiu Duan Committed by Pablo Neira Ayuso
Browse files

netfilter: nft_quota: match correctly when the quota just depleted



The xt_quota compares skb length with remaining quota, but the nft_quota
compares it with consumed bytes.

The xt_quota can match consumed bytes up to quota at maximum. But the
nft_quota break match when consumed bytes equal to quota.

i.e., nft_quota match consumed bytes in [0, quota - 1], not [0, quota].

Fixes: 795595f6 ("netfilter: nft_quota: dump consumed quota")
Signed-off-by: default avatarZhongqiu Duan <dzq.aishenghu0@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent d33f889f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment