]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-netlink: Increase log level for dumped Netlink messages
authorTobias Brunner <tobias@strongswan.org>
Wed, 11 Jan 2023 16:05:37 +0000 (17:05 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 22 Feb 2023 12:20:10 +0000 (13:20 +0100)
Some of these contain key material so they should be logged on level 4.

src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c

index 71905e3c9c8343f48b5b18958d5261001d49f20d..cb09446409ad48a809d66702afdfbb15025fc159 100644 (file)
@@ -359,7 +359,7 @@ static status_t send_once(private_netlink_socket_t *this, struct nlmsghdr *in,
 
        if (this->names)
        {
-               DBG3(DBG_KNL, "sending %N %u: %b", this->names, in->nlmsg_type,
+               DBG4(DBG_KNL, "sending %N %u: %b", this->names, in->nlmsg_type,
                         (u_int)seq, in, in->nlmsg_len);
        }
 
@@ -426,7 +426,7 @@ static status_t send_once(private_netlink_socket_t *this, struct nlmsghdr *in,
        {
                if (this->names)
                {
-                       DBG3(DBG_KNL, "received %N %u: %b", this->names, hdr->nlmsg_type,
+                       DBG4(DBG_KNL, "received %N %u: %b", this->names, hdr->nlmsg_type,
                                 hdr->nlmsg_seq, hdr, hdr->nlmsg_len);
                }
                memcpy(ptr, hdr, hdr->nlmsg_len);