aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-01 12:30:35 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-06-01 15:27:11 +0200
commit395d925470950a528b8556da74528e9484d914ff (patch)
treebfa1c3c4bc67579459e31788a7a64217d52bb12b
parentnetns: account for FreeBSD 12 quirks (diff)
downloadwireguard-freebsd-395d925470950a528b8556da74528e9484d914ff.tar.xz
wireguard-freebsd-395d925470950a528b8556da74528e9484d914ff.zip
netns: use massive datagrams
This tests the mbuf fragment code more heavily. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xtests/netns.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/netns.sh b/tests/netns.sh
index 6cc0c63e9e62..34e80afe4e75 100755
--- a/tests/netns.sh
+++ b/tests/netns.sh
@@ -46,9 +46,12 @@ jid0="$(pp jail -ic path=/ vnet=new children.max=2 persist)"
jid1="$(j0 jail -ic path=/ vnet=new persist)"
jid2="$(j0 jail -ic path=/ vnet=new persist)"
+pp sysctl net.inet.udp.maxdgram=65535 # Global! Eep!
+pp sysctl net.inet.udp.recvspace=65535 # Global! Eep!
j0 sysctl net.inet6.ip6.dad_count=0
j1 sysctl net.inet6.ip6.dad_count=0
j2 sysctl net.inet6.ip6.dad_count=0
+ifconfig0 lo0 mtu 65535
ifconfig0 lo0 127.0.0.1/8
ifconfig0 lo0 inet6 ::1/128
ifconfig0 lo0 up
@@ -127,7 +130,7 @@ tests() {
}
[[ $(ifconfig1 wg1) =~ mtu\ ([0-9]+) ]] && orig_mtu="${BASH_REMATCH[1]}"
-big_mtu=$(( 16384 - 1500 + $orig_mtu ))
+big_mtu=$(( 65535 - 1500 + $orig_mtu ))
# Test using IPv4 as outer transport
ifconfig1 wg1 mtu $orig_mtu