summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-03 18:27:26 +0100
committerTom Gundersen <teg@jklm.no>2014-01-03 18:27:26 +0100
commit8b264404b6cc412d3a588ca1b54fd2c1b09c5270 (patch)
tree413d7f0a3ea41594bcfef2c6380238911136d48d /src/network/networkd-manager.c
parentaa3437a573ed2a2b2a03c9649fe11d27b40a772b (diff)
networkd: link hash uses 64, not 32 bit keys
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 7b0c5d7653..4e2cf45791 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -241,6 +241,7 @@ int manager_udev_listen(Manager *m) {
static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, void *userdata) {
Manager *m = userdata;
Link *link;
+ uint64_t ifindex_64;
int r, ifindex;
r = sd_rtnl_message_link_get_ifindex(message, &ifindex);
@@ -249,9 +250,10 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo
return 0;
}
- link = hashmap_get(m->links, &ifindex);
+ ifindex_64 = ifindex;
+ link = hashmap_get(m->links, &ifindex_64);
if (!link) {
- log_debug("received RTM_NEWLINK message for ifindex we are not tracking (%d)", ifindex);
+ log_debug("received RTM_NEWLINK message for untracked ifindex %d", ifindex);
return 0;
}
@@ -261,7 +263,7 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo
if (r < 0)
return 0;
} else
- log_debug("received RTM_NEWLINK message for link we are not managing (%d)", ifindex);
+ log_debug("%s: received RTM_NEWLINK message for unmanaged link", link->ifname);
return 1;
}