From: Roy Marples Date: Mon, 25 Apr 2016 13:03:24 +0000 (+0000) Subject: Ignore address removals if the broadcast address is the same as well as the X-Git-Tag: v6.11.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=261c5f7d64ce49aeb22709d227edbae1184146bb;p=thirdparty%2Fdhcpcd.git Ignore address removals if the broadcast address is the same as well as the netmask address. --- diff --git a/dhcp.c b/dhcp.c index 3c966e92..44c70f75 100644 --- a/dhcp.c +++ b/dhcp.c @@ -3466,7 +3466,8 @@ dhcp_handleifa(int cmd, struct interface *ifp, if (cmd == RTM_DELADDR) { if (state->addr.s_addr == addr->s_addr && - state->net.s_addr == net->s_addr) + state->net.s_addr == net->s_addr && + state->brd.s_addr == brd->s_addr) { logger(ifp->ctx, LOG_INFO, "%s: removing IP address %s/%d",