Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 b37161f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cstp.c
Expand Up @@ -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)
Expand Down

0 comments on commit b37161f

Please sign in to comment.