]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: IDLETIMER.t: Fix syntax, support for restore input
authorPhil Sutter <phil@nwl.cc>
Fri, 30 Sep 2022 16:06:10 +0000 (18:06 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 5 Oct 2022 16:42:01 +0000 (18:42 +0200)
Expected output was wrong in the last OK test, probably defeating rule
search check. Also use a different label, otherwise the kernel will
reject the second idletimer with same label but different type if both
rules are added at once.

Fixes: 85b9ec8615428 ("extensions: IDLETIMER: Add alarm timer option")
extensions/libxt_IDLETIMER.t

index e8f306d2462c70649d3dc93bda004710e580fed4..3345d5bef9e38b3f158a76c63309e8ca04313e52 100644 (file)
@@ -2,4 +2,4 @@
 -j IDLETIMER --timeout;;FAIL
 -j IDLETIMER --timeout 42;;FAIL
 -j IDLETIMER --timeout 42 --label foo;=;OK
--j IDLETIMER --timeout 42 --label foo --alarm;;OK
+-j IDLETIMER --timeout 42 --label bar --alarm;=;OK