]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a warning when we get am IPV4LL address and we haven't daemonised
authorRoy Marples <roy@marples.name>
Fri, 9 Nov 2007 15:38:44 +0000 (15:38 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Nov 2007 15:38:44 +0000 (15:38 +0000)
client.c

index dcc6dd6917ee46146caa3d932b98dcceac73b9f5..44c0c0df7b64c4a450b0c27be338fc24d443eb95 100644 (file)
--- a/client.c
+++ b/client.c
@@ -534,6 +534,9 @@ int dhcp_run (const options_t *options, int *pidfd)
                                                        if (ipv4ll_get_address (iface, dhcp) == -1) {
                                                                break;
                                                        }
+                                                       if (! daemonised)
+                                                               logger (LOG_WARNING, "using IPV4LL address %s",
+                                                                               inet_ntoa (dhcp->address));
                                                        timeout = dhcp->renewaltime;
                                                }
 #endif