From 395d925470950a528b8556da74528e9484d914ff Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 1 Jun 2021 12:30:35 +0200 Subject: netns: use massive datagrams This tests the mbuf fragment code more heavily. Signed-off-by: Jason A. Donenfeld --- tests/netns.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/netns.sh b/tests/netns.sh index 6cc0c63..34e80af 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 -- cgit v1.2.3-59-g8ed1b