path: root/src/tests
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2017-08-03 23:00:46 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-08-03 23:00:46 +0200
commit6eeee5fa9ac983d0ca2755402181c3e32d714d5e (patch)
treec64c4cdd2d15c25d1df9eff2d1237a40dc519688 /src/tests
parentnetns: explictly test reply to sender routing (diff)
netns: work around linux 3.10 issues
Diffstat (limited to 'src/tests')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh
index c799a48..6a58b37 100755
--- a/src/tests/netns.sh
+++ b/src/tests/netns.sh
@@ -295,6 +295,8 @@ ip1 addr del fd00:aa::1/96 dev veth1
n1 ping -W 1 -c 1
# Now we show that we can successfully do reply to sender routing
+ip1 link set veth1 down
+ip2 link set veth2 down
ip1 addr flush dev veth1
ip2 addr flush dev veth2
ip1 addr add dev veth1
@@ -303,6 +305,10 @@ ip1 addr add fd00:aa::1/96 dev veth1
ip1 addr add fd00:aa::2/96 dev veth1
ip2 addr add dev veth2
ip2 addr add fd00:aa::3/96 dev veth2
+ip1 link set veth1 up
+ip2 link set veth2 up
+waitiface $netns1 veth1
+waitiface $netns2 veth2
n2 wg set wg0 peer "$pub1" endpoint
n2 ping -W 1 -c 1
[[ $(n2 wg show wg0 endpoints) == "$pub1" ]]