summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-07-01 20:46:03 +0100
committerRoy Marples <roy@marples.name>2018-07-01 20:46:03 +0100
commit30cf7d4df73f58341450c6f4751f3ccedad77235 (patch)
tree7dfe24995cb9984154e81c358d7db529d11c012a
parent3173b73b6286a4974d77468767f8ddbb544f17d0 (diff)
downloaddhcpcd-30cf7d4df73f58341450c6f4751f3ccedad77235.tar.xz
linux: fix adding host routes
-rw-r--r--src/if-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if-linux.c b/src/if-linux.c
index 99bacfab..3196c9df 100644
--- a/src/if-linux.c
+++ b/src/if-linux.c
@@ -1228,7 +1228,7 @@ if_route(unsigned char cmd, const struct rt *rt)
nlm.rt.rtm_protocol = RTPROT_BOOT;
if (rt->rt_ifp->flags & IFF_LOOPBACK)
nlm.rt.rtm_scope = RT_SCOPE_HOST;
- else if (gateway_unspec || sa_is_allones(&rt->rt_netmask))
+ else if (gateway_unspec)
nlm.rt.rtm_scope = RT_SCOPE_LINK;
else
nlm.rt.rtm_scope = RT_SCOPE_UNIVERSE;