Skip to content
Permalink
Browse files
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 <David.Woodhouse@intel.com>
(cherry picked from commit b37161f)
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 13, 2013
1 parent 173c314 commit cae5178056eae94c9273c32c894a4e2c896c95cf
Showing with 2 additions and 0 deletions.
  1. +2 −0 cstp.c
2 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)

0 comments on commit cae5178

Please sign in to comment.