From a6f5659e87a4c934c7ef24a43f5c0492b3d2695c Mon Sep 17 00:00:00 2001 From: dlg Date: Sat, 24 Oct 2015 04:12:24 +0000 Subject: [PATCH] lookup tap devices in tapkqfilter, not tun devices. libevent likes this more. --- sys/net/if_tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.20.1