Date: Mon, 24 Jul 2006 14:36:42 -0700 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: David Gilbert <dgilbert@dclg.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: kqueue doesn't see if_tun Message-ID: <20060724213642.GQ96589@funkthat.com> In-Reply-To: <17605.7478.194820.171800@canoe.dclg.ca> References: <17605.7478.194820.171800@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
David Gilbert wrote this message on Mon, Jul 24, 2006 at 15:19 -0400: > 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? No one has written a d_kqfilter entry for tun... so, until someone does, kqueue will not work on tun... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060724213642.GQ96589>