summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
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
commit3d13601173706f8e1b6447e66c70c146b82c310e (patch)
tree9f4cbb04ec02376f4c37151b39874ffdee7f813d
parent64a77dbadfc493214fe7bfc911326421219c6a1f (diff)
netns: replace n0 ip with ip0, per custom
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xsrc/tests/netns.sh4
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