summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2006-05-27 04:01:04 +0000
committerkrw <krw@openbsd.org>2006-05-27 04:01:04 +0000
commit60111ade9be17032f810115c50f42086f41873ec (patch)
tree38de8691c9f24ee08ad75a62ea460327fee18664
parentcommit the new opencvs code, i have been hacking on (diff)
downloadwireguard-openbsd-60111ade9be17032f810115c50f42086f41873ec.tar.xz
wireguard-openbsd-60111ade9be17032f810115c50f42086f41873ec.zip
When an interface is ignored because it has no IP address, say so.
Don't just say 'not found". And always complain, not just when specific interfaces were requested. requested by and ok uwe@
-rw-r--r--usr.sbin/dhcpd/dispatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index 10f240718f3..021b7bb2985 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.18 2006/05/11 01:19:08 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.19 2006/05/27 04:01:04 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -210,9 +210,9 @@ discover_interfaces(void)
for (tmp = interfaces; tmp; tmp = next) {
next = tmp->next;
if (!tmp->ifp) {
- if (ir)
- warning("%s: not found", tmp->name);
- /* Remove tmp from the list of interfaces. */
+ warning("%s: no IP address found, can't listen.",
+ tmp->name);
+ /* Remove tmp from the list of interfaces. */
if (!last)
interfaces = interfaces->next;
else