network/dhcp-pd: do not remove unreachable route when reconfiguring non-upstream...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Nov 2024 00:16:06 +0000 (09:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 02:53:24 +0000 (11:53 +0900)
commit4e76c57c7f86c46ef2ec3d3f7c25e049cf357214
treeb855ddd9381a37e06d5a6daf18eedb9aca9a8c53
parent42152390dab7c01c181fd1ee008973aa16ec47ce
network/dhcp-pd: do not remove unreachable route when reconfiguring non-upstream interface

Unreachable routes are not owned by any interfaces, and its ifindex is
zero. Previously, if a non-upstream interface is reconfigured, all routes
including unreachable routes configured by the upstream interface are
removed.

This makes unreachable routes are always handled by the upstream interface,
and only removed when the delegated prefixes are changed or lost.
src/network/networkd-dhcp-prefix-delegation.c
src/network/networkd-dhcp-prefix-delegation.h
src/network/networkd-dhcp4.c
src/network/networkd-dhcp6.c