diff options
author | 2010-11-19 08:00:56 +0000 | |
---|---|---|
committer | 2010-11-19 08:00:56 +0000 | |
commit | 255ca50c265090e3a0ececcb15f4dc39fac08ff2 (patch) | |
tree | 7a3e279716e2ee2a0141dbfdee128d9fa638f76d | |
parent | Fix the "SSL error:host(blah)!=cert(*.blah)-Continue? (y)" error when going (diff) | |
download | wireguard-openbsd-255ca50c265090e3a0ececcb15f4dc39fac08ff2.tar.xz wireguard-openbsd-255ca50c265090e3a0ececcb15f4dc39fac08ff2.zip |
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. */ |