aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests/netns.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:46:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:46:25 +0200
commit61e1a8b01dca5d1d6eaa191ac9c12c240e4b2d75 (patch)
tree0210c94dfa61a9768fa996e2c793c37db7a8b6c9 /src/tests/netns.sh
parentgo test: properly pad message (diff)
downloadwireguard-monolithic-historical-61e1a8b01dca5d1d6eaa191ac9c12c240e4b2d75.tar.xz
wireguard-monolithic-historical-61e1a8b01dca5d1d6eaa191ac9c12c240e4b2d75.zip
receive: trim incoming packets to IP header length
Diffstat (limited to 'src/tests/netns.sh')
-rwxr-xr-xsrc/tests/netns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh
index 1ad767e..72f6333 100755
--- a/src/tests/netns.sh
+++ b/src/tests/netns.sh
@@ -143,7 +143,7 @@ n2 wg set wg0 peer "$pub1" endpoint 127.0.0.1:1
# Before calling tests, we first make sure that the stats counters are working
n2 ping -c 10 -f -W 1 192.168.241.1
{ read _; read _; read _; read rx_bytes _; read _; read tx_bytes _; } < <(ip2 -stats link show dev wg0)
-[[ $rx_bytes -ge 1052 && $tx_bytes -ge 1516 && $rx_bytes -lt 2500 && $rx_bytes -lt 2500 ]]
+[[ $rx_bytes -ge 932 && $tx_bytes -ge 1516 && $rx_bytes -lt 2500 && $rx_bytes -lt 2500 ]]
tests
ip1 link set wg0 mtu $big_mtu
ip2 link set wg0 mtu $big_mtu