aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/multi.c
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/multi.c
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/multi.c')
-rw-r--r--src/openvpn/multi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 42aff67..6f7bb6f 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -2286,7 +2286,8 @@ multi_client_generate_tls_keys(struct context *c)
#endif
struct tls_session *session = &c->c2.tls_multi->session[TM_ACTIVE];
if (!tls_session_update_crypto_params(session, &c->options,
- &c->c2.frame, frame_fragment))
+ &c->c2.frame, frame_fragment,
+ get_link_socket_info(c)))
{
msg(D_TLS_ERRORS, "TLS Error: initializing data channel failed");
register_signal(c, SIGUSR1, "process-push-msg-failed");