Skip to content
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

Add AF_XDP syscalls, constants and types #946

Merged
merged 1 commit into from Jan 11, 2024

Conversation

arctic-alpaca
Copy link
Contributor

Experimental implementation of parts of #941, the if_* methods are not implemented.

This is still missing actual tests and I'm unsure about the use of #[cfg(target_os = "linux")]. It is also a very real possibility, that I missed some implementation for SocketAddrXdp.

In my limited tests, I could create and use an AF_XDP socket as expected.

Since this depends on additions to linux-raw-sys, it currently depends on my fork.

@arctic-alpaca
Copy link
Contributor Author

The use-libc test seems to fail because of the libc fork I'm using currently using.

The fork is necessary because the libc crate currently doesn't expose the required structs/constants. I created rust-lang/libc#3453 to add them.

Copy link
Member

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sunfishcode sunfishcode merged commit 5648e33 into bytecodealliance:main Jan 11, 2024
44 checks passed
@sunfishcode
Copy link
Member

This is released in rustix 0.38.29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants