summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-12-12 19:43:27 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-12-14 10:58:26 +0100
commit352eba2e49453a1b784ffbdb9509ba3f8a945b59 (patch)
tree6fb283e2831e4c28818e2bf29ab74caa07ba278b /src/network/networkd-manager.c
parentnetwork/nexthop: rename manager_get_nexthop_by_id() -> nexthop_get_by_id() (diff)
downloadsystemd-352eba2e49453a1b784ffbdb9509ba3f8a945b59.tar.xz
systemd-352eba2e49453a1b784ffbdb9509ba3f8a945b59.zip
network/nexthop: manage all nexthops by manager
The kernel manages nexthops by their IDs. Previously networkd manages nexthops in three ways: - by the corresponding link, if a nexthop has ifindex, - by the manager, if a nexthop does not have ifindex, - by the manager with their IDs. This unifies the three managements of nexthops into one, and use the same way as the kernel uses. This is the one for nexthop already done by aa9626ee3b96e0d2a9a816b5efd38fd7dc829def for neighbor.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 6ee01b28e0..b162d21aa0 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -649,7 +649,6 @@ Manager* manager_free(Manager *m) {
* set_free() must be called after the above sd_netlink_unref(). */
m->routes = set_free(m->routes);
- m->nexthops = set_free(m->nexthops);
m->nexthops_by_id = hashmap_free(m->nexthops_by_id);
sd_event_source_unref(m->speed_meter_event_source);