]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
attempt to coax server to accept a larger MRU by nak-offering our MTU if it's greater...
authorDaniel Lenski <dlenski@gmail.com>
Sun, 17 May 2020 20:02:31 +0000 (13:02 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Sun, 17 May 2020 20:21:16 +0000 (13:21 -0700)
commit14eb507b22b0783f8c2e94c021d3772df29d2f18
treef58652ec0d71aba48747e932c45b4ca7db6f05ee
parent84eb036bcbbac53acd381b976d8be73d20d35c0f
attempt to coax server to accept a larger MRU by nak-offering our MTU if it's greater than the server's MRU

We only attempt this once before giving up.

Tested on F5, and this works: we nak-offer a larger MRU, and the server
responds with a new CONFACK requesting the same value.

The F5 server often offers erroneously low MRU values, too small for IPv6
(minimum MTU of 1280), and is consistently strict about not accepting
incoming IP packets which are even 1 byte larger than its MRU, so this is
useful. 🍺

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
ppp.c
ppp.h