30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
|
From 41aee42de0f55e45b55f94a66d31731697e5fc73 Mon Sep 17 00:00:00 2001
|
||
|
From: Eric Garver <eric@garver.life>
|
||
|
Date: Wed, 3 Feb 2021 14:37:44 -0500
|
||
|
Subject: [PATCH 05/22] test(nftables): normalize reject statement output
|
||
|
|
||
|
The output became more verbose in nftables commit 7ca3368cd757 ("reject:
|
||
|
Unify inet, netdev and bridge delinearization").
|
||
|
|
||
|
(cherry picked from commit 00835e746cf48c73e386d3ad24af7e8fcf3c73ed)
|
||
|
(cherry picked from commit a47186bda1a308a34b5e114a634ae6450d17205b)
|
||
|
---
|
||
|
src/tests/functions.at | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/src/tests/functions.at b/src/tests/functions.at
|
||
|
index 7ac28d514233..4c8a4603f287 100644
|
||
|
--- a/src/tests/functions.at
|
||
|
+++ b/src/tests/functions.at
|
||
|
@@ -419,6 +419,7 @@ m4_define([NFT_LIST_RULES_NORMALIZE], [dnl
|
||
|
-e '/type.*hook.*priority.*policy.*/d'dnl
|
||
|
dnl tranform ct state { established,related } to ct state established,related
|
||
|
-e '/ct \(state\|status\)/{s/\(ct \(state\|status\)\) {/\1/g; s/ }//; s/\(@<:@a-z@:>@*\), /\1,/g;}' dnl
|
||
|
+ -e 's/reject with icmp[[x6]]\? type port-unreachable/reject/' dnl
|
||
|
])
|
||
|
|
||
|
m4_define([NFT_LIST_RULES_ALWAYS], [
|
||
|
--
|
||
|
2.27.0
|
||
|
|