From cae5178056eae94c9273c32c894a4e2c896c95cf Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 4 Feb 2013 16:01:51 +0000 Subject: [PATCH] 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: David Woodhouse (cherry picked from commit b37161f6aa355b0e134de6b582a4c7838a4be07a) --- cstp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cstp.c b/cstp.c index dacb2ae2..d57d7418 100644 --- a/cstp.c +++ b/cstp.c @@ -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)