]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add lastlease informational message.
authorRoy Marples <roy@marples.name>
Wed, 1 Jun 2016 05:44:47 +0000 (05:44 +0000)
committerRoy Marples <roy@marples.name>
Wed, 1 Jun 2016 05:44:47 +0000 (05:44 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index f0057fb93bf6d03ce646a45d9d63da887a04f19c..0fa35d7fda6f73763cb02feacc4ab6391359ad87 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2246,6 +2246,9 @@ dhcp_lastlease(void *arg)
        struct interface *ifp = arg;
        struct dhcp_state *state = D_STATE(ifp);
 
+       logger(ifp->ctx, LOG_INFO,
+           "%s: timed out contacting a DHCP server, using last lease",
+           ifp->name);
        dhcp_bind(ifp);
        /* If we forked, stop here. */
        if (ifp->ctx->options & DHCPCD_FORKED)