summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-route.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-02-02 04:18:33 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-02-14 16:43:12 +0100
commit7027cdbd79c26d5a8890759a37d70165c8aeb214 (patch)
treec3d3ece285865cb61f8cca4650b86f76d14d652b /src/network/networkd-route.h
parentnetwork: rename link_drop_managed_xyz() -> link_drop_static_xyz() (diff)
downloadsystemd-7027cdbd79c26d5a8890759a37d70165c8aeb214.tar.xz
systemd-7027cdbd79c26d5a8890759a37d70165c8aeb214.zip
network/route: remove existing route if some property conflict with requested ones
Fixes #28853.
Diffstat (limited to 'src/network/networkd-route.h')
-rw-r--r--src/network/networkd-route.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index a5019db65c..d292716b1d 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -97,6 +97,8 @@ int route_remove_and_cancel(Route *route, Manager *manager);
int route_get(Manager *manager, const Route *route, Route **ret);
+bool route_can_update(const Route *existing, const Route *requesting);
+
int link_drop_routes(Link *link, bool foreign);
static inline int link_drop_static_routes(Link *link) {
return link_drop_routes(link, false);