From: Kaelan Mikowicz Date: Thu, 14 Oct 2021 05:14:45 +0000 (-0700) Subject: DHCP: Fix infinite INFORM messages X-Git-Tag: v9.4.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63eacc1a92bac298e1069516dab7b305db70a208;p=thirdparty%2Fdhcpcd.git DHCP: Fix infinite INFORM messages When an address is configured on the interface, do not send an INFORM message if the interface is already bound. Fixes #48 --- diff --git a/src/dhcp.c b/src/dhcp.c index 96063131..ee60df43 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -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; }