tests: adapt test to new ICMP print logic
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Oct 2021 08:59:56 +0000 (10:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 24 Oct 2021 09:51:15 +0000 (11:51 +0200)
Fixes: 35f5120afcf158e445062fdb5072684ed24d91d0
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/03_rules/04_icmp

index 53cee114f6dbc1e43cd3314823bd650371aaa5e9..834ecc799d8e264d63dcd6c169339a5808a60270 100644 (file)
@@ -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 {