From: Roy Marples Date: Wed, 9 Jul 2008 10:12:28 +0000 (+0000) Subject: Report address removal. X-Git-Tag: v4.0.2~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b239fcfe67318ec48da446e1f979201bf7d6c7;p=thirdparty%2Fdhcpcd.git Report address removal. --- diff --git a/configure.c b/configure.c index 8c024f8a..53f97e3b 100644 --- a/configure.c +++ b/configure.c @@ -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. */