]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: log network devices while sending
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 29 Jun 2021 08:32:05 +0000 (10:32 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 29 Jun 2021 08:39:38 +0000 (10:39 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

index 1f61e95012a01784d6688f887a125799c7a854e4..ce4e3a5c0cbf38d1a66023dea1f13d2053677624 100644 (file)
@@ -4121,6 +4121,8 @@ int lxc_network_send_name_and_ifindex_to_parent(struct lxc_handler *handler)
                ret = lxc_send_nointr(data_sock, &netdev->ifindex, sizeof(netdev->ifindex), MSG_NOSIGNAL);
                if (ret < 0)
                        return -1;
+
+               TRACE("Sent network device %s with ifindex %d to parent", maybe_empty(netdev->name), netdev->ifindex);
        }
 
        if (!lxc_list_empty(network))
@@ -4155,6 +4157,8 @@ int lxc_network_recv_name_and_ifindex_from_child(struct lxc_handler *handler)
                ret = lxc_recv_nointr(data_sock, &netdev->ifindex, sizeof(netdev->ifindex), 0);
                if (ret < 0)
                        return -1;
+
+               TRACE("Received network device %s with ifindex %d from child", maybe_empty(netdev->name), netdev->ifindex);
        }
 
        return 0;