summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-11-19 08:00:57 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-11-19 08:00:57 +0000
commit66f158e5b20a627b39416580641a784f0287ec6f (patch)
tree167d754e0ee6d707be9f968ed27affc03aff8392 /usr.sbin
parenta8246efb9a39488e243ebc6bc819a2c10ef13a1b (diff)
Prevent dhcpd(8) from trying to listen on interfaces that don't have a
valid broadcast (e.g. pflog0). "no objection" krw@, ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/dhcpd/dispatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index 2b6970bf48d..f4f25781933 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.27 2010/07/03 04:44:51 guenther Exp $ */
+/* $OpenBSD: dispatch.c,v 1.28 2010/11/19 08:00:56 ajacoutot Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -98,7 +98,8 @@ discover_interfaces(int *rdomain)
*/
if ((ifa->ifa_flags & IFF_LOOPBACK) ||
(ifa->ifa_flags & IFF_POINTOPOINT) ||
- (!(ifa->ifa_flags & IFF_UP)))
+ (!(ifa->ifa_flags & IFF_UP)) ||
+ (!(ifa->ifa_flags & IFF_BROADCAST)))
continue;
/* See if we've seen an interface that matches this one. */