From: Roy Marples Date: Sun, 18 Dec 2011 12:12:08 +0000 (+0000) Subject: Just log the fact that the leased IP address was removed instead of X-Git-Tag: v5.5.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29fe5ed6a4430543b4e7b25b20acc575445eade6;p=thirdparty%2Fdhcpcd.git Just log the fact that the leased IP address was removed instead of expiring the lease. This allows --reconfigure, -g to fully work as intended. --- diff --git a/dhcpcd.c b/dhcpcd.c index 21219bc9..01db7d51 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1377,7 +1377,9 @@ handle_ifa(int type, const char *ifname, if (type == RTM_DELADDR) { if (ifp->state->new && ifp->state->new->yiaddr == addr->s_addr) - drop_dhcp(ifp, "EXPIRE"); + syslog(LOG_INFO, "%s: removing IP address %s/%d", + ifp->name, inet_ntoa(ifp->state->lease.addr), + inet_ntocidr(ifp->state->lease.net)); return; }