From: Doug Nazar Date: Fri, 25 Apr 2025 19:37:54 +0000 (-0400) Subject: Restore logic on when to open an address specific socket (#502) X-Git-Tag: v10.2.3~8 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=67af1dbe9d01b7c885a8ba91b9f1d4329081d87a;p=thirdparty%2Fdhcpcd.git Restore logic on when to open an address specific socket (#502) 850f93b changed the logic while moving things around. Restore the original logic so we open a socket even if the address is the same, so long as it's the first time. --- diff --git a/src/dhcp.c b/src/dhcp.c index b294bd67..637f5a86 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2384,8 +2384,8 @@ dhcp_bound(struct interface *ifp, uint8_t old_state) if (ctx->options & DHCPCD_MANAGER || ifp->options->options & DHCPCD_STATIC || (state->old != NULL && - state->old->yiaddr == state->new->yiaddr) || - (old_state & STATE_ADDED && !(old_state & STATE_FAKE))) + state->old->yiaddr == state->new->yiaddr && + old_state & STATE_ADDED && !(old_state & STATE_FAKE))) return; dhcp_closeinet(ifp);