diff options
author | Florian Westphal <fw@strlen.de> | 2016-09-09 14:14:16 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2016-09-09 15:53:26 +0200 |
commit | 03d7eb8c260b85e77fea305736a352bbc0e94769 (patch) | |
tree | 01a7f233eddb64a64fa46b5dbe0bfda2ea789602 /tests/py/bridge | |
parent | 42e2ec0198dd1408da4a32e1beefe9cbc0fdae89 (diff) |
tests: catch ordering issue w. ether set
Before previous commit, ether set (payload statement) was reversed on
output:
ether daddr set 00:03:2d:2b:74:ec
would be shown as 'ec:74:2b:2d:03:00'.
With ff:ff:ff ... such bug doesn't appear so use something
where it will show up.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/bridge')
-rw-r--r-- | tests/py/bridge/ether.t | 2 | ||||
-rw-r--r-- | tests/py/bridge/ether.t.payload | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/py/bridge/ether.t b/tests/py/bridge/ether.t index 4a177ab0..5c6766eb 100644 --- a/tests/py/bridge/ether.t +++ b/tests/py/bridge/ether.t @@ -7,4 +7,4 @@ tcp dport 22 ip daddr 1.2.3.4 ether saddr 00:0f:54:0c:11:04;ok;tcp dport 22 ethe tcp dport 22 ether saddr 00:0f:54:0c:11:04 ip daddr 1.2.3.4;ok ether saddr 00:0f:54:0c:11:04 ip daddr 1.2.3.4 accept;ok -ether daddr 00:01:02:03:04:05 ether saddr set ff:ff:ff:ff:ff:ff drop;ok +ether daddr 00:01:02:03:04:05 ether saddr set ff:fe:dc:ba:98:76 drop;ok diff --git a/tests/py/bridge/ether.t.payload b/tests/py/bridge/ether.t.payload index c545d657..74956b64 100644 --- a/tests/py/bridge/ether.t.payload +++ b/tests/py/bridge/ether.t.payload @@ -42,11 +42,11 @@ bridge test-bridge input [ cmp eq reg 1 0x04030201 ] [ immediate reg 0 accept ] -# ether daddr 00:01:02:03:04:05 ether saddr set ff:ff:ff:ff:ff:ff drop +# ether daddr 00:01:02:03:04:05 ether saddr set ff:fe:dc:ba:98:76 drop bridge test-bridge input [ payload load 6b @ link header + 0 => reg 1 ] [ cmp eq reg 1 0x03020100 0x00000504 ] - [ immediate reg 1 0xffffffff 0x0000ffff ] + [ immediate reg 1 0xbadcfeff 0x00007698 ] [ payload write reg 1 => 6b @ link header + 6 csum_type 0 csum_off 0 ] [ immediate reg 0 drop ] |