From: Roy Marples Date: Tue, 26 Mar 2013 11:40:44 +0000 (+0000) Subject: Don't spam warning about CSR all the time. X-Git-Tag: v5.99.6~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0984bc9ec6e60ac869b05752f1a6a140f739bee9;p=thirdparty%2Fdhcpcd.git Don't spam warning about CSR all the time. --- diff --git a/dhcp.c b/dhcp.c index 3c183a95..59c8f496 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1720,6 +1720,7 @@ dhcp_rebind(void *arg) state->state = DHS_REBIND; eloop_timeout_delete(send_renew, ifp); state->lease.server.s_addr = 0; + ifp->options->options &= ~ DHCPCD_CSR_WARNED; send_rebind(ifp); } @@ -1831,7 +1832,6 @@ dhcp_bind(void *arg) "%s: renew in %u seconds, rebind in %u seconds", iface->name, lease->renewaltime, lease->rebindtime); } - ifo->options &= ~ DHCPCD_CSR_WARNED; ipv4_applyaddr(iface); daemonise(); state->state = DHS_BOUND; @@ -2023,6 +2023,7 @@ dhcp_drop(struct interface *iface, const char *reason) free(state->old); state->old = NULL; state->lease.addr.s_addr = 0; + iface->options->options &= ~ DHCPCD_CSR_WARNED; } static void