aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/options.h
diff options
context:
space:
mode:
authorArne Schwabe2022-01-01 17:25:23 +0100
committerGert Doering2022-02-02 20:24:35 +0100
commit0fcb7cadb225d7f43e29c3ad6a1e9c34abbb8a63 (patch)
tree14250a5715ad83fe7184a50b6bc12bfe8b7ed662 /src/openvpn/options.h
parent225893ef7d06cdaf145436c54bd1070266a1d1da (diff)
downloadopenvpn-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.h2
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 */