diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-04-04 02:39:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-04-04 02:39:18 +0000 |
commit | 821b3b60e86b0b2f0557b787c258beca66640167 (patch) | |
tree | 22615a2ea9ac4ca75567afde24b75cad3028506d /sys | |
parent | c854dc230b9d6905b3fb0d9534f231522b6a5d81 (diff) |
check for return value of ENODEV from ifpromisc(). This will happen
at detach time when if_detach_ioctl() has been installed for an outgoing
interface and does not represent an error.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index e93575c22f3..5837e9618ef 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.24 2001/03/25 02:44:42 csapuntz Exp $ */ +/* $OpenBSD: bpf.c,v 1.25 2001/04/04 02:39:17 jason Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -242,7 +242,7 @@ bpf_detachd(d) d->bd_promisc = 0; error = ifpromisc(bp->bif_ifp, 0); - if (error && error != EINVAL) + if (error && !(error == EINVAL || error == ENODEV)) /* * Something is really wrong if we were able to put * the driver into promiscuous mode, but can't |