Skip to content

Commit

Permalink
Impose minimum MTU of 1280 bytes.
Browse files Browse the repository at this point in the history
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 cae5178
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 cae5178

Please sign in to comment.