From d503fba828ed4b736938b7c828b1bce6e43dcb8e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 9 Oct 2017 03:52:56 +0200 Subject: routingtable: iterate progressively --- src/tests/netns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/netns.sh') diff --git a/src/tests/netns.sh b/src/tests/netns.sh index a3145b8..375868e 100755 --- a/src/tests/netns.sh +++ b/src/tests/netns.sh @@ -376,7 +376,7 @@ ip0 link add dev wg0 type wireguard config=( "[Interface]" "PrivateKey=$(wg genkey)" "[Peer]" "PublicKey=$(wg genkey)" ) for a in {1..255}; do for b in {0..255}; do - config+=( "AllowedIPs=$a.$b.0.0/16" ) + config+=( "AllowedIPs=$a.$b.0.0/16,$a::$b/128" ) done done n0 wg setconf wg0 <(printf '%s\n' "${config[@]}") @@ -384,7 +384,7 @@ i=0 for ip in $(n0 wg show wg0 allowed-ips); do ((++i)) done -((i == 65281)) +((i == 255*256*2+1)) ip0 link del wg0 ip0 link add dev wg0 type wireguard config=( "[Interface]" "PrivateKey=$(wg genkey)" ) -- cgit v1.2.3-59-g8ed1b