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.
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;
}