Skip to content

Windows Interface.index implementation #26

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

Merged
merged 4 commits into from
Feb 28, 2023
Merged

Windows Interface.index implementation #26

merged 4 commits into from
Feb 28, 2023

Conversation

messense
Copy link
Owner

No description provided.

@messense messense changed the title Windows Interface.idx implementation Windows Interface.index implementation Feb 28, 2023
@messense
Copy link
Owner Author

cc @shinypb

@@ -24,7 +24,7 @@ pub struct Interface {
/// The address details of the interface.
pub addr: IfAddr,
/// The index of the interface.
pub idx: Option<u32>,
pub index: Option<u32>,
Copy link

Choose a reason for hiding this comment

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

Good call

Copy link

@shinypb shinypb left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for doing this.

I just glanced through https://learn.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_addresses_lh and your Windows additions look totally reasonable.

@messense messense merged commit d67ccb0 into master Feb 28, 2023
@messense messense deleted the windows-if-index branch February 28, 2023 05:51
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.

2 participants