From: Roy Marples Date: Fri, 2 Sep 2016 13:37:07 +0000 (+0000) Subject: Don't add host routes for the IPv4LL default route. X-Git-Tag: v6.11.4~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=588dc4c04443380c3a998fd8018d94daa55e1002;p=thirdparty%2Fdhcpcd.git Don't add host routes for the IPv4LL default route. --- diff --git a/ipv4.c b/ipv4.c index 0bd3ceb8..2115719f 100644 --- a/ipv4.c +++ b/ipv4.c @@ -661,7 +661,8 @@ add_router_host_route(struct rt_head *rt, const struct interface *ifp) return rt; TAILQ_FOREACH(rtp, rt, next) { - if (rtp->dest.s_addr != INADDR_ANY) + if (rtp->dest.s_addr != INADDR_ANY || + rtp->gate.s_addr == INADDR_ANY) continue; /* Scan for a route to match */ TAILQ_FOREACH(rtn, rt, next) {