Mercurial > hg > dhcpcd
changeset 4445:b232fd763431 draft
route: Don't install an IPv4LL default route if static one exists
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 17 Apr 2019 01:14:00 +0000 |
| parents | 116946128ea1 |
| children | bc634fb95df4 |
| files | src/ipv4.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ipv4.c Tue Apr 16 18:13:25 2019 +0000 +++ b/src/ipv4.c Wed Apr 17 01:14:00 2019 +0000 @@ -450,6 +450,8 @@ memset(&def, 0, sizeof(def)); def.rt_dest.sa_family = AF_INET; have_default = (rt_find(routes, &def) != NULL); + if (!have_default) + have_default = (rt_find(&ctx->kroutes, &def) != NULL); if (!have_default) { TAILQ_FOREACH(ifp, ctx->ifaces, next) { if (ifp->active &&
