diff options
author | Arne Schwabe | 2022-01-01 17:25:23 +0100 |
---|---|---|
committer | Gert Doering | 2022-02-02 20:24:35 +0100 |
commit | 0fcb7cadb225d7f43e29c3ad6a1e9c34abbb8a63 (patch) | |
tree | 14250a5715ad83fe7184a50b6bc12bfe8b7ed662 /src/openvpn/options.h | |
parent | 225893ef7d06cdaf145436c54bd1070266a1d1da (diff) | |
download | openvpn-0fcb7cadb225d7f43e29c3ad6a1e9c34abbb8a63.zip openvpn-0fcb7cadb225d7f43e29c3ad6a1e9c34abbb8a63.tar.gz |
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>
Diffstat (limited to 'src/openvpn/options.h')
-rw-r--r-- | src/openvpn/options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvpn/options.h b/src/openvpn/options.h index ded0652..c252339 100644 --- a/src/openvpn/options.h +++ b/src/openvpn/options.h @@ -127,6 +127,8 @@ struct connection_entry int fragment; /* internal fragmentation size */ int mssfix; /* Upper bound on TCP MSS */ bool mssfix_default; /* true if --mssfix was supplied without a parameter */ + bool mssfix_encap; /* true if --mssfix had the "mtu" parameter to include + * overhead from IP and TCP/UDP encapsulation */ int explicit_exit_notification; /* Explicitly tell peer when we are exiting via OCC_EXIT or [RESTART] message */ |