summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_tos.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-10-01 01:25:50 +0200
committerPhil Sutter <phil@nwl.cc>2022-10-26 20:11:55 +0200
commit32da222e9b9cdc9269b2c1ff02be10ccb4089e4f (patch)
tree97c129c891d26d25d4a669ff7c3a0ae3a5e67abb /extensions/libxt_tos.t
parent64594e06a4d85adb326ffea11b97b71255469fac (diff)
tests: libxt_tos.t, libxt_TOS.t: Add missing masks in output
Mask differs between numeric --set-tos values and symbolic ones, make sure it is covered by the tests. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libxt_tos.t')
-rw-r--r--extensions/libxt_tos.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libxt_tos.t b/extensions/libxt_tos.t
index ccbe8009..6cceeeb4 100644
--- a/extensions/libxt_tos.t
+++ b/extensions/libxt_tos.t
@@ -4,10 +4,10 @@
-m tos --tos Maximize-Reliability;-m tos --tos 0x04/0x3f;OK
-m tos --tos Minimize-Cost;-m tos --tos 0x02/0x3f;OK
-m tos --tos Normal-Service;-m tos --tos 0x00/0x3f;OK
--m tos --tos 0xff;=;OK
--m tos ! --tos 0xff;=;OK
--m tos --tos 0x00;=;OK
--m tos --tos 0x0f;=;OK
+-m tos --tos 0xff;-m tos --tos 0xff/0xff;OK
+-m tos ! --tos 0xff;-m tos ! --tos 0xff/0xff;OK
+-m tos --tos 0x00;-m tos --tos 0x00/0xff;OK
+-m tos --tos 0x0f;-m tos --tos 0x0f/0xff;OK
-m tos --tos 0x0f/0x0f;=;OK
-m tos --tos wrong;;FAIL
-m tos;;FAIL