diff options
author | Florian Westphal <fw@strlen.de> | 2017-10-24 00:14:04 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-10-26 23:46:10 +0200 |
commit | 46b53873ed7b66dbd91e63dfe766e32dd3db53e9 (patch) | |
tree | 4c394fab52e6f62e288bc084771c78831b25106f /tests/py/inet/ip_tcp.t.payload.bridge | |
parent | c22721b69a51a73c18ea251c91973aef5445f225 (diff) |
tests: nft removes required inet dependency expressions
+inet/meta.t: line: 10: 'add rule inet t input meta nfproto ipv6 tcp dport 22': 'meta nfproto ipv6 tcp dport 22' mismatches 'tcp dport 22'
+inet/meta.t: line: 11: 'add rule inet t input meta nfproto ipv4 tcp dport 22': 'meta nfproto ipv4 tcp dport 22' mismatches 'tcp dport 22'
+inet/meta.t: line: 13: 'add rule inet t input meta nfproto ipv6 meta l4proto tcp': 'meta nfproto ipv6 meta l4proto 6' mismatches 'meta l4proto 6'
+inet/ip_tcp.t: line: 20: 'src/nft add rule inet test input ether type ip tcp dport 22': 'ether type ip tcp dport 22' mismatches 'tcp dport 22'
All of these are actual errors, i.e. meaning of rule is changed.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/ip_tcp.t.payload.bridge')
-rw-r--r-- | tests/py/inet/ip_tcp.t.payload.bridge | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/py/inet/ip_tcp.t.payload.bridge b/tests/py/inet/ip_tcp.t.payload.bridge index 46d968d2..f9f2e0a1 100644 --- a/tests/py/inet/ip_tcp.t.payload.bridge +++ b/tests/py/inet/ip_tcp.t.payload.bridge @@ -40,3 +40,12 @@ bridge test-bridge input [ payload load 2b @ transport header + 2 => reg 1 ] [ cmp eq reg 1 0x00001600 ] +# ether type ip tcp dport 22 +bridge test-bridge input + [ payload load 2b @ link header + 12 => reg 1 ] + [ cmp eq reg 1 0x00000008 ] + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ payload load 2b @ transport header + 2 => reg 1 ] + [ cmp eq reg 1 0x00001600 ] + |