From: dlg Date: Sat, 24 Oct 2015 04:12:24 +0000 (+0000) Subject: lookup tap devices in tapkqfilter, not tun devices. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a6f5659e87a4c934c7ef24a43f5c0492b3d2695c;p=openbsd lookup tap devices in tapkqfilter, not tun devices. libevent likes this more. --- diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index b8894918f6c..d52dc4bb2b0 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.156 2015/10/23 15:08:24 claudio Exp $ */ +/* $OpenBSD: if_tun.c,v 1.157 2015/10/24 04:12:24 dlg Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -1067,7 +1067,7 @@ tapkqfilter(dev_t dev, struct knote *kn) { struct tun_softc *tp; - if ((tp = tun_lookup(minor(dev))) == NULL) + if ((tp = tap_lookup(minor(dev))) == NULL) return (ENXIO); return (tun_dev_kqfilter(tp, kn)); }