summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-01-11 18:14:15 +0100
committerFlorian Westphal <fw@strlen.de>2024-01-11 21:34:05 +0100
commit1d03ab5267bdbc7c0bcb041efaad42a462fdeb5f (patch)
treeb6cd8fadf7eeca035f17255f8c819cf17f67d7fa /tests/shell
parent666018e71ebb5df376b1b013c1ca859eaed66f1a (diff)
evaluate: tproxy: move range error checks after arg evaluation
Testing for range before evaluation will still crash us later during netlink linearization, prefixes turn into ranges, symbolic expression might hide a range/prefix. So move this after the argument has been evaluated. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rw-r--r--tests/shell/testcases/bogons/nft-f/tproxy_ranges8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/tproxy_ranges b/tests/shell/testcases/bogons/nft-f/tproxy_ranges
new file mode 100644
index 00000000..1230860e
--- /dev/null
+++ b/tests/shell/testcases/bogons/nft-f/tproxy_ranges
@@ -0,0 +1,8 @@
+define range = 42-80
+
+table t {
+ chain c {
+ tcp dport 42 tproxy to 192.168.0.1:$range
+ tcp dport 42 tproxy to 192.168.0.0/16
+ }
+}