dco_linux: allow passing KEEPALIVE_TIMEOUT without KEEPALIVE_INTERVAL

Depends on: 67f453e314

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>
This commit is contained in:
Marco Baffo 2026-06-05 20:10:46 +02:00 committed by Gert Doering
parent 71b271d9a1
commit d66de4e0a4

View 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);