From 29f20e738531f0e65df1bc330f598b3d1eb60b22 Mon Sep 17 00:00:00 2001
From: Antonio Quartulli
Date: Fri, 12 Aug 2022 15:06:55 +0200
Subject: [PATCH] ovpn-dco: print some netlink messages to debug level
Netlink errors detected during dco availability detection are not really
required and can confuse the user.
Have them printed to the dco debug level.
Signed-off-by: Antonio Quartulli
Acked-by: Gert Doering
Message-Id: <20220812130657.29899-9-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24892.html
Signed-off-by: Gert Doering
---
src/openvpn/dco_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c
index f86ea8192..9212339e9 100644
--- a/src/openvpn/dco_linux.c
+++ b/src/openvpn/dco_linux.c
@@ -913,7 +913,7 @@ nla_put_failure:
bool
dco_available(int msglevel)
{
- if (resolve_ovpn_netlink_id(msglevel) < 0)
+ if (resolve_ovpn_netlink_id(D_DCO_DEBUG) < 0)
{
msg(msglevel,
"Note: Kernel support for ovpn-dco missing, disabling data channel offload.");
--
2.47.2