summaryrefslogtreecommitdiff
path: root/ctdb/config/functions
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config/functions')
-rwxr-xr-xctdb/config/functions15
1 files changed, 14 insertions, 1 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index eb98ce8a170..9d91e6a61ad 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -1356,10 +1356,23 @@ ctdb_standard_event_handler ()
}
# iptables doesn't like being re-entered, so flock-wrap it.
-iptables()
+iptables ()
{
flock -w 30 $CTDB_VARDIR/iptables-ctdb.flock /sbin/iptables "$@"
}
+ip6tables ()
+{
+ flock -w 30 $CTDB_VARDIR/iptables-ctdb.flock /sbin/ip6tables "$@"
+}
+iptables_wrapper ()
+{
+ _family="$1" ; shift
+ if [ "$_family" = "inet6" ] ; then
+ ip6tables "$@"
+ else
+ iptables "$@"
+ fi
+}
# AIX (and perhaps others?) doesn't have mktemp
if ! which mktemp >/dev/null 2>&1 ; then