diff options
author | 2001-04-04 02:39:17 +0000 | |
---|---|---|
committer | 2001-04-04 02:39:17 +0000 | |
commit | f43b17c7e0ab732c5dafeb63ade33a5de7f7240c (patch) | |
tree | 35edcadd1849f877adbf523c833b4907ccce6af7 | |
parent | enable client rekeying (diff) | |
download | wireguard-openbsd-f43b17c7e0ab732c5dafeb63ade33a5de7f7240c.tar.xz wireguard-openbsd-f43b17c7e0ab732c5dafeb63ade33a5de7f7240c.zip |
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.
-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 |