Files
linux/net/netfilter
Pablo Neira Ayuso 3e0f64b7dd netfilter: nft_limit: fix packet ratelimiting
Credit calculations for the packet ratelimiting are not correct, as per
the applied ratelimit of 25/second and burst 8, a total of 33 packets
should have been accepted.  This is true in iptables(33) but not in
nftables (~65). For packet ratelimiting, use:

	div_u64(limit->nsecs, limit->rate) * limit->burst;

to calculate credit, just like in iptables' xt_limit does.

Moreover, use default burst in iptables, users are expecting similar
behaviour.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-05-23 09:50:28 +02:00
..
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-02-14 21:05:34 +01:00
2011-07-01 16:11:15 -07:00
2015-05-14 13:00:27 +02:00
2018-03-27 13:18:09 -04:00