]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-dhcp6.c
network/route: introduce route_remove_and_cancel()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Jan 2024 06:49:20 +0000 (15:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Jan 2024 07:43:44 +0000 (16:43 +0900)
commit3caed9ea0830b811ba0e5222e57c5d7deda204e3
tree255548b59ebb3cc9e7f4eb135abf0fe3238a94c4
parent6b7309b6fbcbaa5ce7c5d91822daea172c157ed4
network/route: introduce route_remove_and_cancel()

Then, replace route_remove_and_drop() with it.

If a route is requested, and the request is already called,
we may not received its reply and notification from the kernel, and
the corresponding Route object may not be remembered. Even in such
case, we need to remove the route, otherwise the route will come
later after the function called.

This is the version for route of f22b586a215962416bdbd692aabb89b1ac2999d0.
src/network/networkd-dhcp-prefix-delegation.c
src/network/networkd-dhcp4.c
src/network/networkd-dhcp6.c
src/network/networkd-ndisc.c
src/network/networkd-route.c
src/network/networkd-route.h