diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-15 18:01:51 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-17 01:12:47 +0200 |
commit | 623f595e484783e08e292eb54745995e109487f0 (patch) | |
tree | cb2d64699891b1e88afd45d2ab9f59c79c7d26af /tests/py/ip6/icmpv6.t.json | |
parent | e69019ec7aa6bd40ab23659e4b97cdb094ab7a79 (diff) |
tests: add a icmp-reply only and icmpv6 id test cases
Check that nft doesn't remove the dependency in these cases:
icmp type echo-reply icmp id 1
("icmp id" matches both echo request and reply).
Add icmpv6 test cases. These fail without the previous patches:
add rule ip6 test-ip6 input icmpv6 id 1:
'icmpv6 id 1' mismatches
'icmpv6 type { echo-request, echo-reply} icmpv6 parameter-problem 65536/16'
add rule ip6 test-ip6 input icmpv6 type echo-reply icmpv6 id 65534':
'icmpv6 type echo-reply icmpv6 id 65534' mismatches
'icmpv6 type echo-reply @th,32,16 65534'
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip6/icmpv6.t.json')
-rw-r--r-- | tests/py/ip6/icmpv6.t.json | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/py/ip6/icmpv6.t.json b/tests/py/ip6/icmpv6.t.json index 30d2ad98..2251be82 100644 --- a/tests/py/ip6/icmpv6.t.json +++ b/tests/py/ip6/icmpv6.t.json @@ -856,6 +856,67 @@ } ] +# icmpv6 id 1 +[ + { + "match": { + "left": { + "payload": { + "field": "type", + "protocol": "icmpv6" + } + }, + "op": "==", + "right": { + "set": [ + "echo-request", + "echo-reply" + ] + } + } + }, + { + "match": { + "left": { + "payload": { + "field": "id", + "protocol": "icmpv6" + } + }, + "op": "==", + "right": 1 + } + } +] + +# icmpv6 type echo-reply icmpv6 id 65534 +[ + { + "match": { + "left": { + "payload": { + "field": "type", + "protocol": "icmpv6" + } + }, + "op": "==", + "right": "echo-reply" + } + }, + { + "match": { + "left": { + "payload": { + "field": "id", + "protocol": "icmpv6" + } + }, + "op": "==", + "right": 65534 + } + } +] + # icmpv6 sequence 2 [ { |