summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/ip_tcp.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-03-23 00:50:45 +0100
committerFlorian Westphal <fw@strlen.de>2017-05-08 22:01:26 +0200
commite2958fb2008607f3a2bc6dcd87da5f74a71ef209 (patch)
tree87705407de046de599715b072deaa46dfbe7da7f /tests/py/ip/ip_tcp.t
parent1b6693788cd6f9d9a69c24d205e93c2e3cf4d7fd (diff)
tests: don't kill dependencies accross statements
add a test case for previous commit. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/ip_tcp.t')
-rw-r--r--tests/py/ip/ip_tcp.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/ip/ip_tcp.t b/tests/py/ip/ip_tcp.t
new file mode 100644
index 00000000..a97833ff
--- /dev/null
+++ b/tests/py/ip/ip_tcp.t
@@ -0,0 +1,10 @@
+:input;type filter hook input priority 0
+:ingress;type filter hook ingress device lo priority 0
+
+*ip;test-inet;input
+
+# can remove ip dependency -- its redundant in ip family
+ip protocol tcp tcp dport 22;ok;tcp dport 22
+
+# but not here
+ip protocol tcp meta mark set 1 tcp dport 22;ok;ip protocol 6 mark set 0x00000001 tcp dport 22