From: Antonio Quartulli
Date: Fri, 12 Aug 2022 13:06:55 +0000 (+0200)
Subject: ovpn-dco: print some netlink messages to debug level
X-Git-Tag: v2.6_beta1~118
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f20e738531f0e65df1bc330f598b3d1eb60b22;p=thirdparty%2Fopenvpn.git
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
---
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.");