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.
This commit is contained in:
Tom Gundersen
2014-01-31 12:20:34 +01:00
parent 40e39f6283
commit c3ab23898f
-8
View File
@@ -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;
}