summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 378633061e..4d27272b3b 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -525,9 +525,13 @@ int manager_rtnl_enumerate_links(Manager *m) {
for (link = reply; link; link = sd_rtnl_message_next(link)) {
int k;
+ m->enumerating = true;
+
k = manager_rtnl_process_link(m->rtnl, link, m);
if (k < 0)
r = k;
+
+ m->enumerating = false;
}
return r;
@@ -556,9 +560,13 @@ int manager_rtnl_enumerate_addresses(Manager *m) {
for (addr = reply; addr; addr = sd_rtnl_message_next(addr)) {
int k;
+ m->enumerating = true;
+
k = link_rtnl_process_address(m->rtnl, addr, m);
if (k < 0)
r = k;
+
+ m->enumerating = false;
}
return r;