From 63eacc1a92bac298e1069516dab7b305db70a208 Mon Sep 17 00:00:00 2001 From: Kaelan Mikowicz Date: Wed, 13 Oct 2021 22:14:45 -0700 Subject: [PATCH] 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 --- src/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2