]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: add a icmp-reply only and icmpv6 id test cases
authorFlorian Westphal <fw@strlen.de>
Tue, 15 Jun 2021 16:01:51 +0000 (18:01 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 16 Jun 2021 23:12:47 +0000 (01:12 +0200)
commit623f595e484783e08e292eb54745995e109487f0
treecb2d64699891b1e88afd45d2ab9f59c79c7d26af
parente69019ec7aa6bd40ab23659e4b97cdb094ab7a79
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>
tests/py/ip/icmp.t
tests/py/ip/icmp.t.json
tests/py/ip/icmp.t.payload.ip
tests/py/ip6/icmpv6.t
tests/py/ip6/icmpv6.t.json
tests/py/ip6/icmpv6.t.payload.ip6