diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-09 03:52:56 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-09 05:32:52 +0200 |
commit | d503fba828ed4b736938b7c828b1bce6e43dcb8e (patch) | |
tree | 809db0ca8b39c6b8fb751d8686dd082906505194 /src/tests | |
parent | routingtable: only use device's mutex, not a special rt one (diff) | |
download | wireguard-monolithic-historical-d503fba828ed4b736938b7c828b1bce6e43dcb8e.tar.xz wireguard-monolithic-historical-d503fba828ed4b736938b7c828b1bce6e43dcb8e.zip |
routingtable: iterate progressively
Diffstat (limited to 'src/tests')
-rwxr-xr-x | src/tests/netns.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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)" ) |