network/route: forget IPv4 non-local routes when an interface went down
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Nov 2024 13:07:53 +0000 (22:07 +0900)
committerLuca Boccassi <bluca@debian.org>
Mon, 11 Nov 2024 13:59:41 +0000 (13:59 +0000)
commit6954c38cf8d3c34cfa06982d3fd0257480becc13
tree440380ccbb57b032964d548e306a858c58513923
parentfd2ea787bd6e80d9cccfe4a061d8b5267d9ae83d
network/route: forget IPv4 non-local routes when an interface went down

When an interface went down, IPv4 non-local routes are removed by the
kernel without any notifications. Let's forget the routes in that case.

Fixes #35047.
src/network/networkd-link.c
src/network/networkd-route.c
src/network/networkd-route.h