[PATCH firewall4 1/2] tests: adapt test to new ICMP print logic

Thomas Weißschuh thomas at t-8ch.de
Sun Oct 24 01:59:56 PDT 2021


Fixes: 35f5120afcf158e445062fdb5072684ed24d91d0

Signed-off-by: Thomas Weißschuh <thomas at t-8ch.de>
---
 tests/03_rules/04_icmp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/03_rules/04_icmp b/tests/03_rules/04_icmp
index 53cee11..834ecc7 100644
--- a/tests/03_rules/04_icmp
+++ b/tests/03_rules/04_icmp
@@ -100,8 +100,8 @@ table inet fw4 {
 		meta l4proto icmp counter comment "!fw4: ICMP rule #1"
 		meta nfproto ipv6 meta l4proto ipv6-icmp counter comment "!fw4: ICMP rule #2"
 		meta nfproto ipv6 meta l4proto ipv6-icmp counter comment "!fw4: ICMP rule #3"
-		meta nfproto ipv4 icmp type . icmp code 12 . 0 counter comment "!fw4: ICMP rule #4"
-		meta nfproto ipv6 icmpv6 type . icmpv6 code 136 . 0 counter comment "!fw4: ICMP rule #5"
+		meta nfproto ipv4 icmp type . icmp code { 12 . 0 } counter comment "!fw4: ICMP rule #4"
+		meta nfproto ipv6 icmpv6 type . icmpv6 code { 136 . 0 } counter comment "!fw4: ICMP rule #5"
 	}
 
 	chain handle_reject {

base-commit: 35f5120afcf158e445062fdb5072684ed24d91d0
-- 
2.33.1




More information about the openwrt-devel mailing list