From: Christian Brauner Date: Thu, 31 Aug 2017 13:25:16 +0000 (+0200) Subject: network: log ifindex for host side veth device X-Git-Tag: lxc-2.0.9~48^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=434f6022d5d0803e4160d1101a4cf299e3cbfc69;p=thirdparty%2Flxc.git network: log ifindex for host side veth device Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 18d8226e0..31e705f9d 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -266,6 +266,9 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf) if (netdev->priv.veth_attr.veth1[0] != '\0') TRACE("veth1 : %s", netdev->priv.veth_attr.veth1); + if (netdev->priv.veth_attr.ifindex > 0) + TRACE("host side ifindex for veth device: %d", + netdev->priv.veth_attr.ifindex); break; case LXC_NET_MACVLAN: TRACE("type: macvlan");