]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
dco_linux: allow passing KEEPALIVE_TIMEOUT without KEEPALIVE_INTERVAL
authorMarco Baffo <marco@mandelbit.com>
Fri, 5 Jun 2026 18:10:46 +0000 (20:10 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 7 Jun 2026 16:43:11 +0000 (18:43 +0200)
Depends on: https://github.com/OpenVPN/ovpn-net-next/commit/67f453e3146a646ef5f811e5a85c610537d80521

Closes: https://github.com/OpenVPN/openvpn/issues/911
Change-Id: Ib56fb53ec1c0c30c9aecbd0ca440de2affad04b5
Signed-off-by: Marco Baffo <marco@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1705
Message-Id: <20260605181053.3774-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg37070.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c

index d332359c1f39dc3d937edff6db3491aa03bc10cf..0998bd6004717c641603aa61cf85ddcf5f3532c6 100644 (file)
@@ -1623,9 +1623,9 @@ tls_session_update_crypto_params_do_work(struct tls_multi *multi, struct tls_ses
 
     if (dco_enabled(options))
     {
-        /* dco_set_peer() must be called if either keepalive or
-         * mssfix are set to update in-kernel config */
-        if (options->ping_send_timeout || frame->mss_fix)
+        /* dco_set_peer() must be called if either keepalive, ping, ping-restart,
+         * ping-exit or mssfix are set to update in-kernel config */
+        if (options->ping_send_timeout || options->ping_rec_timeout || frame->mss_fix)
         {
             int ret = dco_set_peer(dco, multi->dco_peer_id, options->ping_send_timeout,
                                    options->ping_rec_timeout, frame->mss_fix);