]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Smarter MTU calculation for GlobalProtect gpst
authorDaniel Lenski <dlenski@gmail.com>
Sat, 13 Jan 2018 00:10:25 +0000 (16:10 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 27 Feb 2018 15:28:32 +0000 (16:28 +0100)
commitb0d0c4c3aeb0ab7bde671d1fb89e02f0db6e2f21
tree56886d6bdb0b445061aab93f6538e27369cd9457
parentaf0290dbffb67967d5d732ba04601bd5c3bd71b2
Smarter MTU calculation for GlobalProtect

- If we have no ESP support, ESP disabled, or no ESP keys received, then
  we're definitely using the TLS tunne and we should calculate tunnel MTU
  based on the TCP MSS, subtracting the TLS+GPST overhead (and only use the
  base/wire MTU as a crude fallback if necessary).

- If we've got ESP enabled and ESP keys, then we should calculate tunnel
  MTU based on the base/wire MTU, subtracting the IP+UDP+ESP overhead.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gpst.c