Date: Mon, 24 Jul 2006 15:19:18 -0400 From: David Gilbert <dgilbert@dclg.ca> To: freebsd-hackers@freebsd.org Subject: kqueue doesn't see if_tun Message-ID: <17605.7478.194820.171800@canoe.dclg.ca>
next in thread | raw e-mail | index | archive | help
I have some code that sets up a tunnel device and registers a kqueue filter for it ... ending roughly in: EV_SET(&kqev, cons->tunSocket, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, &cons->fsdkq); kevent(fsd->kq, &kqev, 1, NULL, 0, NULL); This event never fires. In another part of a the code, I have a timer --- so I call the tunnel reading function from there and (low and behold) there is a packet. Does EVFILT_READ just not work on tunnel devices? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17605.7478.194820.171800>