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

Obtain a specified physical or virtual MAC address using the network adapter name #45

Open
spdrwcn opened this issue Apr 12, 2024 · 3 comments

Comments

@spdrwcn
Copy link

spdrwcn commented Apr 12, 2024

Specify a network adapter to distinguish between physical and virtual MAC addresses

@repnop
Copy link
Owner

repnop commented Apr 16, 2024

Does mac_address_by_name do what you want here?

@spdrwcn
Copy link
Author

spdrwcn commented Apr 29, 2024

For example, if you are not sure about the name of the network adapter, there may be multiple wireless adapters, only one of which is a physical MAC address, and the others are virtual MAC addresses.

@spdrwcn
Copy link
Author

spdrwcn commented Apr 29, 2024

I'm using the matching string to get it, do you have a more efficient way to do it?

https://github.com/spdrwcn/macgui/blob/main/src/mac.rs

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

2 participants