From debb5c542918492545ca3243b49afeb0bde83609 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 27 Mar 2018 12:11:04 +0200 Subject: 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 --- tests/py/ip6/meta.t | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/py/ip6/meta.t (limited to 'tests/py/ip6') diff --git a/tests/py/ip6/meta.t b/tests/py/ip6/meta.t new file mode 100644 index 00000000..68fa89f5 --- /dev/null +++ b/tests/py/ip6/meta.t @@ -0,0 +1,11 @@ +:input;type filter hook input priority 0 + +*ip6;test-ip6;input + +icmpv6 type nd-router-advert;ok +meta l4proto ipv6-icmp icmpv6 type nd-router-advert;ok;icmpv6 type nd-router-advert + +meta l4proto icmp icmp type echo-request;ok;meta l4proto 1 icmp type echo-request +meta l4proto 1 icmp type echo-request;ok + +icmp type echo-request;fail -- cgit v1.2.3