]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: hashlimit: Fix tests with HZ=100
authorPhil Sutter <phil@nwl.cc>
Mon, 9 Aug 2021 16:48:58 +0000 (18:48 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 10 Aug 2021 15:45:06 +0000 (17:45 +0200)
commitbef9dc575625a98a5e6ed8ca37e49031cdba5937
treed8fe63687741e951be4f950025033e9e00edb4fe
parent943fbf3e1850ae1f52f29c2f4f2aca399779b368
extensions: hashlimit: Fix tests with HZ=100

With the kernel ticking at 100Hz, a limit of 1/day with burst 5 does not
overflow in kernel, making the test unstable depending on kernel config.
Change it to not overflow with 1000Hz either by increasing the burst
value by a factor of 100.

Fixes: fcf9f6f25db11 ("extensions: libxt_hashlimit: add unit test")
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_hashlimit.t