]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop redundant and invalid destination address
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Aug 2019 23:11:02 +0000 (08:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 Sep 2019 13:33:11 +0000 (22:33 +0900)
When dst_prefixlen is not set, the value is not used.

src/network/networkd-route.c

index 9a90879361980dc0e237617b3e55f56e7f978dfa..d51342527699012830ea8a9e9d8d8ba9da01c5c0 100644 (file)
@@ -876,10 +876,6 @@ int network_add_default_route_on_device(Network *network) {
         if (r < 0)
                 return r;
 
-        r = in_addr_from_string(AF_INET, "169.254.0.0", &n->dst);
-        if (r < 0)
-                return r;
-
         n->family = AF_INET;
 
         TAKE_PTR(n);