diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-08 19:54:06 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-08 22:13:40 +0100 |
commit | 45af44d47da6933b260c734ad9ff721f63f80a4d (patch) | |
tree | 0aae958af8aba2c93a202b9e681749cfc9e19b66 /src/network/networkd.c | |
parent | 2173cbf847fc53ca24950e77958c902edecfc207 (diff) |
networkd: manager - enumerate addresses globally, rather than per-link
The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r-- | src/network/networkd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c index 430d615f90..0b386d4069 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -110,6 +110,12 @@ int main(int argc, char *argv[]) { goto out; } + r = manager_rtnl_enumerate_addresses(m); + if (r < 0) { + log_error_errno(r, "Could not enumerate links: %m"); + goto out; + } + sd_notify(false, "READY=1\n" "STATUS=Processing requests..."); |