kqueue doesn't see if_tun

David Gilbert dgilbert at dclg.ca
Mon Jul 24 19:20:15 UTC 2006

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?


|David Gilbert, Independent Contractor.       | Two things can be          |
|Mail:       dave at daveg.ca                    |  equal if and only if they |
|http://daveg.ca                              |   are precisely opposite.  |

More information about the freebsd-hackers mailing list