Commit cae51780 authored by David Woodhouse's avatar David Woodhouse

Impose minimum MTU of 1280 bytes.

Some people have seen extremely low pMTU values from the kernel. Not sure
why, but let's impose a lower limit for now.
Signed-off-by: default avatarDavid Woodhouse <>
(cherry picked from commit b37161f6)
parent 173c3143
......@@ -144,6 +144,8 @@ static void calculate_mtu(struct openconnect_info *vpninfo, int *base_mtu, int *
/* Default */
*mtu = 1406;
if (*mtu < 1280)
*mtu = 1280;
static int start_cstp_connection(struct openconnect_info *vpninfo)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment