]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Just log the fact that the leased IP address was removed instead of
authorRoy Marples <roy@marples.name>
Sun, 18 Dec 2011 12:12:08 +0000 (12:12 +0000)
committerRoy Marples <roy@marples.name>
Sun, 18 Dec 2011 12:12:08 +0000 (12:12 +0000)
expiring the lease. This allows --reconfigure, -g to fully work as
intended.

dhcpcd.c

index 21219bc914ff50f8313873bcdef0f326e986a79e..01db7d516cb775a19c999855ccb666c98ced3c27 100644 (file)
--- 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;
        }