diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-08-29 20:24:27 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-15 22:33:11 +0900 |
commit | c697db75de39a63d6c07b706221346dd4a490386 (patch) | |
tree | 577ad0869175dbbaf8ebf54d52dc1f2752f34a25 | |
parent | 750f9191128674b5325f3218882ad6b6fefdabf5 (diff) | |
download | systemd-c697db75de39a63d6c07b706221346dd4a490386.tar.gz systemd-c697db75de39a63d6c07b706221346dd4a490386.tar.bz2 systemd-c697db75de39a63d6c07b706221346dd4a490386.zip |
network: set scope and protocol for default route
-rw-r--r-- | src/network/networkd-route.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index d513425276..dd1469d0df 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -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; |