From c3ab23898f5794ab0f0705475cbfc27f8e9163a6 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 31 Jan 2014 02:03:39 +0100 Subject: [PATCH] networkd: don't check for ifindex in answer to RTM_NEWLINK The kernel will not be changed to support this, so drop the code. Listening for all RTM_NEWLINK messages and filtering on name is reliable, so it is not a problem. --- src/network/networkd-netdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c index c0f3df5..c48c96a 100644 --- a/src/network/networkd-netdev.c +++ b/src/network/networkd-netdev.c @@ -152,14 +152,6 @@ static int netdev_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda return 1; } - r = sd_rtnl_message_link_get_ifindex(m, &ifindex); - if (r < 0) - log_warning_netdev(netdev, "created netdev with unknown ifindex: %s", strerror(-r)); - else { - log_info_netdev(netdev, "created netdev with ifindex %d", ifindex); - netdev_set_ifindex(netdev, ifindex); - } - return 1; } -- 2.7.4