From: Antonio Quartulli
Date: Fri, 12 Aug 2022 13:06:57 +0000 (+0200)
Subject: dco: move message to DCO debug level and reword a bit
X-Git-Tag: v2.6_beta1~117
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f088db208621ead8e8c7151f3e705f5ff9a0cbb5;p=thirdparty%2Fopenvpn.git
dco: move message to DCO debug level and reword a bit
This message is purely a debug message, so it should go to the
appropriate log level. At the same time make it more clear.
Signed-off-by: Antonio Quartulli
Acked-by: Gert Doering
Message-Id: <20220812130657.29899-11-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24893.html
Signed-off-by: Gert Doering
---
diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c
index 9212339e9..98e10507b 100644
--- a/src/openvpn/dco_linux.c
+++ b/src/openvpn/dco_linux.c
@@ -760,7 +760,8 @@ ovpn_handle_msg(struct nl_msg *msg, void *arg)
uint32_t ifindex = nla_get_u32(attrs[OVPN_ATTR_IFINDEX]);
if (ifindex != dco->ifindex)
{
- msg(D_DCO, "ovpn-dco: received message type %d with mismatched ifindex %d\n",
+ msg(D_DCO_DEBUG,
+ "ovpn-dco: ignoring message (type=%d) for foreign ifindex %d",
gnlh->cmd, ifindex);
return NL_SKIP;
}