-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Additional linux AF_PACKET functionality #3120
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon. Please see the contribution instructions for more information. |
(Note that this change removes the |
@bors r+ |
Additional linux AF_PACKET functionality Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux (PACKET_TX_RING, PACKET_RX_RING, etc.).
💔 Test failed - checks-actions |
The failure is valid, I guess the cause is our musl image on CI is old, we could skip tests for that arch. |
It seems like |
@bors r+ |
Additional linux AF_PACKET functionality Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux (PACKET_TX_RING, PACKET_RX_RING, etc.).
💔 Test failed - checks-actions |
Alright, so this time the musl build failed due to some issue with Fingers crossed that this time we actually pass the extended checks :) |
@bors r=JohnTitor |
Failed on mips: @rustbot author |
Did a rebase for this--the issues with mips and BSD should (hopefully) all be fixed now |
@bors r+ |
Additional linux AF_PACKET functionality Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux (PACKET_TX_RING, PACKET_RX_RING, etc.).
💔 Test failed - checks-actions |
Most recent issue was with MIPS--it's in the same camp as sparc64 and musl with big endian alignment. I've added an exception for
|
@bors r+ |
Additional linux AF_PACKET functionality Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux (PACKET_TX_RING, PACKET_RX_RING, etc.).
💔 Test failed - checks-actions |
Seems something is wrong on powerpc64:
@rustbot author |
Closing as inactive, feel free to re-submit a PR if you're still interested in this change. Thanks anyway! |
I kept running into struct alignment issues on 64-bit big-endian architectures (currently being tracked at rust-lang/rust#43894); these would lead to bors failing. Once rust-lang resolves those, I'll resubmit a PR and get this functionality merged in. |
Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux (PACKET_TX_RING, PACKET_RX_RING, etc.).