]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report address removal.
authorRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 10:12:28 +0000 (10:12 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 10:12:28 +0000 (10:12 +0000)
configure.c

index 8c024f8a102eec4f95c0dc13096102fc45d57dfb..53f97e3b189806c121b010229fdb49a7d1ea3550 100644 (file)
@@ -466,8 +466,12 @@ configure(struct interface *iface, const char *reason,
 
        /* Now delete the old address if different */
        if (iface->addr.s_addr != addr.s_addr &&
-           iface->addr.s_addr != 0) 
+           iface->addr.s_addr != 0) {
+               logger(LOG_DEBUG, "deleting IP address %s/%d",
+                      inet_ntoa(iface->addr),
+                      inet_ntocidr(iface->net));
                del_address(iface->name, &iface->addr, &iface->net);
+       }
 
 #ifdef __linux__
        /* On linux, we need to change the subnet route to have our metric. */