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
commitd3753a8676f88ddf4a29218904dbe2701c948157 (patch)
tree7dfe24995cb9984154e81c358d7db529d11c012a
parentd75ba9f3e5464e20c4c26321dde59e69bd235413 (diff)
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 99bacfa..3196c9d 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;