-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for eventfd file descriptors? #97
Comments
Any thoughts on this? Or maybe pointers on where I can start looking into it myself? Zeek has a new release coming in the next few months and I'd love to get this fixed before then so I can make sure it works over there. |
There's no reason it shouldn't work. The issue is that the FD returned by eventfd() doesn't have an st_mode type flag we recognise. Could you try with 6095fad and let me know the st_mode value that gets printed in the debug output. |
Here's that output:
|
Great, thank you! |
…sn't hint at the type Closes mheily#97
The Zeek project had a user report that libkqueue returns an error when used with a load-balanced pf-ring zero-copy interface. The pf_ring-zc system uses eventfd for load balanced interfaces. A call to
kevent()
returns a "Bad Address" error when adding the interface.Does libkqueue support eventfd descriptors? I haven't tried to reduce it down to a simple example where I just open an eventfd manually, but opening the load-balanced interface via libpcap and then trying to pass that FD into libkqueue definitely fails. I have a pf_ring interface all set up here for testing so I can definitely provide any information you need. For starters, here's a debug log:
We do know that libpcap supports these interfaces correctly. Earlier versions of our software worked with them, prior to our change over to use libkqueue.
The text was updated successfully, but these errors were encountered: