On Fri, Oct 27, 2006 at 11:07:49PM -0700, Scott Lamb wrote: > On 26 Oct 2006, at 19:13, Sachin K wrote: > >Hi all, > >I am trying to capture read events on tun0 device on freeBSD 5.5 using > >libevent library v1.2. But the event_dispatch() function returns with > >an error "Operation not supported by device". > > > >Is /dev/tun0 device supported by libevent 1.2? > > libevent doesn't do anything differently than you'd do by directly > using kqueue(), poll(), or select() system calls. I know at least > select() works on FreeBSD's tun0 device, since tinc uses it.
FreeBSD's tun device didn't get kqueue support until Aug 2006. The change was merged into the FreeBSD 6 branch, but I don't believe it was ever merged into 5.5. You'll have to use select() or poll() I think. -- Jason _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users