Skip to content

Linux-only features in nix #200

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

Closed
polachok opened this issue Oct 14, 2015 · 4 comments
Closed

Linux-only features in nix #200

polachok opened this issue Oct 14, 2015 · 4 comments

Comments

@polachok
Copy link
Contributor

I just started working on Netlink sockets support for rust.
Do you think adding support for Netlink (only available on linux) is in scope of the project, or it would better to create a separate library reusing parts of Nix?

@carllerche
Copy link
Contributor

The exact design guidelines of nix are still in flux (#190). However, nix definitely includes linux only APIs. So, 👍

@posborne
Copy link
Member

Netlink supports sounds good to me. It looks like there is a start to providing libnl bindings for Rust: https://github.com/carrotsrc/rsnl and https://github.com/carrotsrc/rsgnl. That being said, I would prefer to have a direct syscall interface available.

@polachok
Copy link
Contributor Author

@posborne what do you mean by direct syscall interface? Is this direct enough?

@posborne
Copy link
Member

Sorry yes. Syscall was obviously not the right word in this case as netlink uses sockets. Basically, without wrapping another library like libnl (libc is fine)

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

No branches or pull requests

3 participants