summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-10-27 16:37:26 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-10-27 16:38:18 +0200
commitc1c655bb60933ce110d1e6b0b9a9e0ffd1a2d035 (patch)
tree06c88070b27773db42f009f9d73c5e807192d3d7 /src
parentnetwork: address: use passed Address object if possible (diff)
downloadsystemd-c1c655bb60933ce110d1e6b0b9a9e0ffd1a2d035.tar.xz
systemd-c1c655bb60933ce110d1e6b0b9a9e0ffd1a2d035.zip
network: route: update lifetime of existing route
Otherwise, the route whose lifetime is managed by the sd-event's timer event source will be removed when the initial lifetime expires.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-route.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
index e5c95d734e..9ee89a671f 100644
--- a/src/network/networkd-route.c
+++ b/src/network/networkd-route.c
@@ -1572,6 +1572,7 @@ int link_request_route(
} else {
existing->source = route->source;
existing->provider = route->provider;
+ existing->lifetime_usec = route->lifetime_usec;
if (consume_object)
route_free(route);
}