]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: route: update lifetime of existing route 21153/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Oct 2021 14:37:26 +0000 (23:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Oct 2021 14:38:18 +0000 (23:38 +0900)
Otherwise, the route whose lifetime is managed by the sd-event's timer
event source will be removed when the initial lifetime expires.

src/network/networkd-route.c

index e5c95d734ed8710684ede894c0170dbd8cd043ab..9ee89a671f55132510a457239f4c4fa4b1bed193 100644 (file)
@@ -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);
         }