Blame SOURCES/0003-test-functions-normalize-iptables-ipv6-icmp-icmpv6.patch

4f81f0
From 68276da6dda3f73dfed5e6758675a5148ac77271 Mon Sep 17 00:00:00 2001
4f81f0
From: Eric Garver <eric@garver.life>
4f81f0
Date: Tue, 5 Jul 2022 14:38:34 -0400
4f81f0
Subject: [PATCH 3/3] test(functions): normalize iptables ipv6-icmp/icmpv6
4f81f0
4f81f0
The output changed in iptables 1.8.8. Specifically commit b6196c7504d4
4f81f0
("xshared: Prefer xtables_chain_protos lookup over getprotoent").
4f81f0
4f81f0
Fixes: #982
4f81f0
Fixes: rhbz2100881
4f81f0
(cherry picked from commit c54ea7b5e492b3aae631dc71579afc24d713401f)
4f81f0
---
4f81f0
 src/tests/functions.at | 5 ++++-
4f81f0
 1 file changed, 4 insertions(+), 1 deletion(-)
4f81f0
4f81f0
diff --git a/src/tests/functions.at b/src/tests/functions.at
4f81f0
index 481c94017f15..a38ae9005ea2 100644
4f81f0
--- a/src/tests/functions.at
4f81f0
+++ b/src/tests/functions.at
4f81f0
@@ -395,7 +395,10 @@ m4_define([EBTABLES_LIST_RULES], [
4f81f0
 
4f81f0
 m4_define([IPXTABLES_LIST_RULES_NORMALIZE], [dnl
4f81f0
     TRIM_WHITESPACE | dnl
4f81f0
-    tail -n +3 dnl
4f81f0
+    tail -n +3 | dnl
4f81f0
+    dnl iptables-1.8.8 changed output of some protocols
4f81f0
+    dnl commit b6196c7504d4 ("xshared: Prefer xtables_chain_protos lookup over getprotoent")
4f81f0
+    sed -e ['s/[ ]ipv6-icmp\([ -]\)/ icmpv6\1/g'] dnl
4f81f0
 ])
4f81f0
 
4f81f0
 m4_define([IPTABLES_LIST_RULES_NORMALIZE], [dnl
4f81f0
-- 
4f81f0
2.31.1
4f81f0