From 46b53873ed7b66dbd91e63dfe766e32dd3db53e9 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 24 Oct 2017 00:14:04 +0200 Subject: 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 --- tests/py/inet/ip_tcp.t.payload | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/py/inet/ip_tcp.t.payload') diff --git a/tests/py/inet/ip_tcp.t.payload b/tests/py/inet/ip_tcp.t.payload index 8bdc70c8..1e16f852 100644 --- a/tests/py/inet/ip_tcp.t.payload +++ b/tests/py/inet/ip_tcp.t.payload @@ -40,3 +40,13 @@ inet test-inet input [ payload load 2b @ transport header + 2 => reg 1 ] [ cmp eq reg 1 0x00001600 ] +# ether type ip tcp dport 22 +inet test-inet input + [ meta load iiftype => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ 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 ] -- cgit v1.2.3