Re: kqueue doesn't see if_tun
- From: John-Mark Gurney <gurney_j@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Jul 2006 14:36:42 -0700
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."
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: kqueue doesn't see if_tun
- From: Alexander Leidinger
- Re: kqueue doesn't see if_tun
- References:
- kqueue doesn't see if_tun
- From: David Gilbert
- kqueue doesn't see if_tun
- Prev by Date: Re: FBSD 5.5 and software timers
- Next by Date: Re: Failing `make buildworld` with today's source
- Previous by thread: kqueue doesn't see if_tun
- Next by thread: Re: kqueue doesn't see if_tun
- Index(es):