Blame SOURCES/0047-test-add-macro-IF_IPV6_SUPPORTED.patch
|
|
c8bceb |
From 0e6a3047de1f4e70926f71da3704cd41281ba91f Mon Sep 17 00:00:00 2001
|
|
|
c8bceb |
From: Eric Garver <eric@garver.life>
|
|
|
c8bceb |
Date: Tue, 14 May 2019 18:30:12 -0400
|
|
|
c8bceb |
Subject: [PATCH 47/73] test: add macro IF_IPV6_SUPPORTED
|
|
|
c8bceb |
|
|
|
c8bceb |
(cherry picked from commit d569d7239f23f443ac4c5dce843481223481ec96)
|
|
|
c8bceb |
(cherry picked from commit 781fe1a49ab1d3fea3540742c38fe6633e65d700)
|
|
|
c8bceb |
---
|
|
|
c8bceb |
src/tests/functions.at | 7 +++++++
|
|
|
c8bceb |
1 file changed, 7 insertions(+)
|
|
|
c8bceb |
|
|
|
c8bceb |
diff --git a/src/tests/functions.at b/src/tests/functions.at
|
|
|
c8bceb |
index 05f517b01369..afd7917d7369 100644
|
|
|
c8bceb |
--- a/src/tests/functions.at
|
|
|
c8bceb |
+++ b/src/tests/functions.at
|
|
|
c8bceb |
@@ -385,3 +385,10 @@ m4_define([HOST_SUPPORTS_IP6TABLES], [m4_esyscmd(
|
|
|
c8bceb |
echo -n "no"
|
|
|
c8bceb |
fi
|
|
|
c8bceb |
)])
|
|
|
c8bceb |
+
|
|
|
c8bceb |
+m4_define([IF_IPV6_SUPPORTED], [
|
|
|
c8bceb |
+ m4_ifdef([TESTING_FIREWALL_OFFLINE_CMD], [$1], [
|
|
|
c8bceb |
+ m4_if(nftables, FIREWALL_BACKEND, [$1], [
|
|
|
c8bceb |
+ m4_if(yes, HOST_SUPPORTS_IP6TABLES, [$1], [$2])
|
|
|
c8bceb |
+ ])])
|
|
|
c8bceb |
+])
|
|
|
c8bceb |
--
|
|
|
c8bceb |
2.20.1
|
|
|
c8bceb |
|