summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-31 02:03:39 +0100
committerTom Gundersen <teg@jklm.no>2014-01-31 12:20:34 +0100
commitc3ab23898f5794ab0f0705475cbfc27f8e9163a6 (patch)
tree9d9f0a3a11207a66abd8cc470a56c6d803f4e23b /src/network/networkd-netdev.c
parent40e39f628308683fda5f77b43afd245b62958641 (diff)
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.
Diffstat (limited to 'src/network/networkd-netdev.c')
-rw-r--r--src/network/networkd-netdev.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index c0f3df5b66..c48c96a517 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;
}