]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: set scope and protocol for default route
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Aug 2019 11:24:27 +0000 (20:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 Sep 2019 13:33:11 +0000 (22:33 +0900)
src/network/networkd-route.c

index d51342527699012830ea8a9e9d8d8ba9da01c5c0..dd1469d0df7c8760f569f63af02b4846b6f62191 100644 (file)
@@ -877,6 +877,9 @@ int network_add_default_route_on_device(Network *network) {
                 return r;
 
         n->family = AF_INET;
+        n->scope = RT_SCOPE_LINK;
+        n->scope_set = true;
+        n->protocol = RTPROT_STATIC;
 
         TAKE_PTR(n);
         return 0;