From: Roy Marples Date: Thu, 9 Oct 2014 19:32:30 +0000 (+0000) Subject: Fix IP sharing on Linux X-Git-Tag: v6.5.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1bbf4f6ebe144d7df5115a8dd6506be5ebb6bf8;p=thirdparty%2Fdhcpcd.git Fix IP sharing on Linux --- diff --git a/ipv4.c b/ipv4.c index 8dd67de8..b9bcde01 100644 --- a/ipv4.c +++ b/ipv4.c @@ -584,7 +584,7 @@ ipv4_buildroutes(struct dhcpcd_ctx *ctx) TAILQ_INIT(nrs); TAILQ_FOREACH(ifp, ctx->ifaces, next) { state = D_CSTATE(ifp); - if (state == NULL || state->new == NULL) + if (state == NULL || state->new == NULL || !state->added) continue; dnr = get_routes(ifp); dnr = massage_host_routes(dnr, ifp); @@ -764,6 +764,7 @@ ipv4_applyaddr(void *arg) { ipv4_addaddr(ifn, &nstate->lease); + nstate->added = 1; break; } }