aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2013-01-16 16:28:26 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:04 +0100
commitf3db566983556bca6f89015a3467cab90618dc91 (patch)
treed845a211cee2e0732f98bc9b149fc4bb8e675201 /testing
parent41943e9c1b99d447aa1637d80ceeb49378dc829e (diff)
downloadstrongswan-f3db566983556bca6f89015a3467cab90618dc91.tar.bz2
strongswan-f3db566983556bca6f89015a3467cab90618dc91.tar.xz
Enforce reception of multicast traffic on virbr[1|2]
This is needed to let the ha/both-active test pass.
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/start-testing11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/start-testing b/testing/start-testing
index 9be1f8619..183729423 100755
--- a/testing/start-testing
+++ b/testing/start-testing
@@ -9,6 +9,7 @@ CONFDIR=$DIR/config/kvm
KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage
KNLTARGET=/var/run/kvm-swan-kernel
HOSTFSTARGET=/var/run/kvm-swan-hostfs
+MCASTBRS="virbr1 virbr2"
echo "Starting test environment"
@@ -35,3 +36,13 @@ do
log_action "Guest $host"
execute "virsh create $CONFDIR/$host.xml"
done
+
+# Enforce reception of multicast traffic on bridges
+for br in $MCASTBRS
+do
+ cd /sys/devices/virtual/net/$br/brif
+ for vnet in `find . -name "vnet*"`
+ do
+ echo 2 > $vnet/multicast_router
+ done
+done