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

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