]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: libxt_length.t: Fix odd use-case output
authorPhil Sutter <phil@nwl.cc>
Fri, 30 Sep 2022 22:39:07 +0000 (00:39 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 26 Oct 2022 18:11:55 +0000 (20:11 +0200)
Specifying the lower boundary suffixed by colon is an undocumented
feature. Explicitly printing the upper boundary in that case seems sane.

Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_length.t

index 0b6624ee069f68d26bf4029091199c95d2ffaf05..8b70fc317485c2178a59a3376207f12697bfd536 100644 (file)
@@ -2,7 +2,7 @@
 -m length --length 1;=;OK
 -m length --length :2;-m length --length 0:2;OK
 -m length --length 0:3;=;OK
--m length --length 4:;=;OK
+-m length --length 4:;-m length --length 4:65535;OK
 -m length --length 0:65535;=;OK
 -m length ! --length 0:65535;=;OK
 -m length --length 0:65536;;FAIL