diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2010-11-19 08:00:57 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2010-11-19 08:00:57 +0000 |
commit | 66f158e5b20a627b39416580641a784f0287ec6f (patch) | |
tree | 167d754e0ee6d707be9f968ed27affc03aff8392 | |
parent | a8246efb9a39488e243ebc6bc819a2c10ef13a1b (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@
-rw-r--r-- | usr.sbin/dhcpd/dispatch.c | 5 |
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. */ |