path: root/src/tests/netns.sh
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 10:42:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 10:42:16 +0100
commit04cf05536acc87f18b720ae5ce111d4742ae8de3 (patch)
tree89b539562f3c30083f9a5babd8ddc06d5097c6e3 /src/tests/netns.sh
parentpoly1305: fix up selftest counter (diff)
netns: replace n0 ip with ip0, per custom
Diffstat (limited to '')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh
index 3588284..57d0b28 100755
--- a/src/tests/netns.sh
+++ b/src/tests/netns.sh
@@ -428,7 +428,7 @@ ip0 link del wg0
! n0 wg show doesnotexist || false
-n0 ip link add wg0 type wireguard
+ip0 link add wg0 type wireguard
n0 wg set wg0 private-key <(echo "$key1") peer "$pub2" preshared-key <(echo "$psk")
[[ $(n0 wg show wg0 private-key) == "$key1" ]]
[[ $(n0 wg show wg0 preshared-keys) == "$pub2 $psk" ]]
@@ -444,7 +444,7 @@ n0 wg set wg0 peer "$pub2"
n0 wg set wg0 private-key <(echo "$key1")
n0 wg set wg0 peer "$pub2"
[[ $(n0 wg show wg0 peers) == "$pub2" ]]
-n0 ip link del wg0
+ip0 link del wg0
declare -A objects
while read -t 0.1 -r line 2>/dev/null || [[ $? -ne 142 ]]; do