-
Notifications
You must be signed in to change notification settings - Fork 27
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 MAC Address to interface struct #7
Comments
Hi @tr3ysmith! Thanks so much for opening this feature request! Thanks for pointing out an approach as well, is very appreciated. This crate attempts to provide the same features under the same API for Window, Linux and macOS. This means that the feature should be supported on the three environments. I will dig into a Windows implementation as well to make sure we have all targets supported. Thanks again! |
Hi @tr3ysmith I replaced the implementation on #8 with a new one in #10. If you have any early feedback that would be awesome, thanks in advance! |
@EstebanBorai Thanks so much! I'll give it a shot this week!! This is awesome! |
@tr3ysmith thanks for your patience and time, I have updated the approach and also introduced the field for |
Hi @tr3ysmith! Just wanted to share that support for MAC Addresses is now available for Linux and Macintosh! Keep you updated! |
Hello! The available MAC address is (probably, I didn't check) the current, which can easily be changed, right? Could we also add the permanent one? Here's how ethtool and macchanger get the permanent MAC address. Thanks! |
Makes sense to me! Would you like to work on this? |
I know this would require a different lookup in libc, but having the MAC hardware address included would be super helpful.
As I understand it, you have to call
ioctl
with this flagSIOCGIFHWADDR
. I'm not very savvy with Rust and libc yet, but figured I'd ask!The text was updated successfully, but these errors were encountered: