network/nexthop: manage all nexthops by manager
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Dec 2023 18:43:27 +0000 (03:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Dec 2023 09:58:26 +0000 (18:58 +0900)
commit352eba2e49453a1b784ffbdb9509ba3f8a945b59
tree6fb283e2831e4c28818e2bf29ab74caa07ba278b
parentac217903354895f904392ff5ddcd8129779b70a9
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.
src/network/networkd-json.c
src/network/networkd-link.c
src/network/networkd-link.h
src/network/networkd-manager.c
src/network/networkd-manager.h
src/network/networkd-nexthop.c
src/network/networkd-nexthop.h
src/network/networkd-route.c