]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Fix infinite INFORM messages
authorKaelan Mikowicz <eternity01033@gmail.com>
Thu, 14 Oct 2021 05:14:45 +0000 (22:14 -0700)
committerRoy Marples <roy@marples.name>
Thu, 14 Oct 2021 05:35:44 +0000 (06:35 +0100)
When an address is configured on the interface, do not send an
INFORM message if the interface is already bound.

Fixes #48

src/dhcp.c

index 96063131db76f373524d55a7e185ac8ac8d87e54..ee60df43cea456eb5b1cab5939fdd408c931006c 100644 (file)
@@ -4258,7 +4258,7 @@ dhcp_handleifa(int cmd, struct ipv4_addr *ia, pid_t pid)
 #endif
 
        if (ifo->options & DHCPCD_INFORM) {
-               if (state->state != DHS_INFORM)
+               if (state->state != DHS_INFORM && state->state != DHS_BOUND)
                        dhcp_inform(ifp);
                return ia;
        }