From 171524d2253f3aa49761cdd82f7a9d7d941bd5b3 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 0e1ac3eb..5c38bbeb 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -4270,7 +4270,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