diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-06 16:09:38 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-24 21:46:32 +0900 |
commit | 3b6a3bdebfb555754fdc6ee507e3f6964de7b61c (patch) | |
tree | b904859c12346774a65f0704d8f42f197045b23e /src/network/networkd-manager.c | |
parent | c7e445abd59c808520cf5f09f059b993f0773aaa (diff) | |
download | systemd-3b6a3bdebfb555754fdc6ee507e3f6964de7b61c.tar.gz |
network: use NetworkConfigSource/State to manage addresses and routes
This also fixes #20146.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 9fb12a07f8..2bc2e5d954 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -26,6 +26,7 @@ #include "netlink-util.h" #include "network-internal.h" #include "networkd-address-pool.h" +#include "networkd-address.h" #include "networkd-dhcp-server-bus.h" #include "networkd-dhcp6.h" #include "networkd-link-bus.h" @@ -35,6 +36,7 @@ #include "networkd-network-bus.h" #include "networkd-nexthop.h" #include "networkd-queue.h" +#include "networkd-route.h" #include "networkd-routing-policy-rule.h" #include "networkd-speed-meter.h" #include "networkd-state-file.h" @@ -456,9 +458,6 @@ Manager* manager_free(Manager *m) { m->request_queue = ordered_set_free(m->request_queue); - m->dhcp6_prefixes = hashmap_free_with_destructor(m->dhcp6_prefixes, dhcp6_pd_free); - m->dhcp6_pd_prefixes = set_free_with_destructor(m->dhcp6_pd_prefixes, dhcp6_pd_free); - m->dirty_links = set_free_with_destructor(m->dirty_links, link_unref); m->links_by_name = hashmap_free(m->links_by_name); m->links_by_hw_addr = hashmap_free(m->links_by_hw_addr); |