]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Ignore address removals if the broadcast address is the same as well as the
authorRoy Marples <roy@marples.name>
Mon, 25 Apr 2016 13:03:24 +0000 (13:03 +0000)
committerRoy Marples <roy@marples.name>
Mon, 25 Apr 2016 13:03:24 +0000 (13:03 +0000)
netmask address.

dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 3c966e92bec83fb6ba472378db65e7298cf7a0bc..44c70f757be040d7fd0803780cc3773a89a51a2e 100644 (file)
--- 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",