-
Notifications
You must be signed in to change notification settings - Fork 679
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
No way to obtain a LinkAddr
on Linux
#1728
Comments
That's an oversight. Thanks for pointing it out. |
asomers
added a commit
to asomers/nix
that referenced
this issue
May 31, 2022
This was an oversight from nix-rust#1684. Fixes nix-rust#1728
rtzoeller
pushed a commit
to rtzoeller/nix
that referenced
this issue
Jul 17, 2022
This was an oversight from nix-rust#1684. Fixes nix-rust#1728
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Linux, there is no method
SockaddrStorage::as_link_addr
, so it is not possible to obtain a MAC address for an interface using safe Rust. I cooked up the following, which seems to work, but it feels like this should be possible using only safe code:The text was updated successfully, but these errors were encountered: