]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/options.h
Implement optional mtu parameter for mssfix
authorArne Schwabe <arne@rfc2549.org>
Sat, 1 Jan 2022 16:25:23 +0000 (17:25 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 2 Feb 2022 19:24:35 +0000 (20:24 +0100)
commit0fcb7cadb225d7f43e29c3ad6a1e9c34abbb8a63
tree14250a5715ad83fe7184a50b6bc12bfe8b7ed662
parent225893ef7d06cdaf145436c54bd1070266a1d1da
Implement optional mtu parameter for mssfix

The current mssfix parameter is a bit difficult to use as it needs
manual calculation of the allowable packet size and also the resulting
MSS value does not take into account if IPv4 or IPv6 is used on the
outer tunnel.  Add 'mtu' parameter to fix both of these problem by
dynamically including the real overhead.

The syntax and naming of the parameter is chosen for compatiblity with
OpenVPN3.

Patch V2: document mssfix 0 disabling mssfix, fix rst syntax

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220101162532.2251835-6-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23495.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Changes.rst
doc/man-sections/link-options.rst
src/openvpn/init.c
src/openvpn/mss.c
src/openvpn/mss.h
src/openvpn/multi.c
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/ssl.c
src/openvpn/ssl.h
tests/unit_tests/openvpn/test_crypto.c