diff options
author | Florian Westphal <fw@strlen.de> | 2018-03-27 12:11:04 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-03-27 12:11:41 +0200 |
commit | debb5c542918492545ca3243b49afeb0bde83609 (patch) | |
tree | 1fa42c3c28c08d50737e7cda9d77d53096967869 /tests/py/ip/meta.t.payload | |
parent | 483e5ea7167e1537accf4cb083b88a8beea8f834 (diff) |
tests: meta: icmp, icmpv6: don't kill required dependencies
when explicitly filtering icmp-in-ipv6 and icmp6-in-ip don't remove the
required l3 protocol dependency, else "nft list ruleset" can't be read
via nft -f anymore.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/meta.t.payload')
-rw-r--r-- | tests/py/ip/meta.t.payload | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/py/ip/meta.t.payload b/tests/py/ip/meta.t.payload new file mode 100644 index 00000000..b186b4b5 --- /dev/null +++ b/tests/py/ip/meta.t.payload @@ -0,0 +1,28 @@ +# icmp type echo-request +ip test-ip4 input + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ payload load 1b @ transport header + 0 => reg 1 ] + [ cmp eq reg 1 0x00000008 ] + +# meta l4proto icmp icmp type echo-request +ip test-ip4 input + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ payload load 1b @ transport header + 0 => reg 1 ] + [ cmp eq reg 1 0x00000008 ] + +# meta l4proto ipv6-icmp icmpv6 type nd-router-advert +ip test-ip4 input + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x0000003a ] + [ payload load 1b @ transport header + 0 => reg 1 ] + [ cmp eq reg 1 0x00000086 ] + +# meta l4proto 58 icmpv6 type nd-router-advert +ip test-ip4 input + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x0000003a ] + [ payload load 1b @ transport header + 0 => reg 1 ] + [ cmp eq reg 1 0x00000086 ] + |