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>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 4, 2013
1 parent b0b4b34 commit b37161f6aa355b0e134de6b582a4c7838a4be07a
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 b37161f

Please sign in to comment.