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