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

feat(linux): local_broadcast_ip function #134

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

JustBobinAround
Copy link
Contributor

In reference to #133. This PR adds access to the broadcast ip. A broadcast ip is only a ipv4 feature which is why there is no ipv6 function. The neli crate provided the broadcast ip directly, so I decided to access that instead of netmask.

Broadcast ip can now be accessed via local_broadcast_ip().

@EstebanBorai EstebanBorai changed the title Adding local_broadcast_ip function feat: local_broadcast_ip function Feb 20, 2024
Copy link
Owner

@EstebanBorai EstebanBorai left a comment

Choose a reason for hiding this comment

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

LGTM! This looks like a good addition for https://github.com/EstebanBorai/network-interface if you will!

@EstebanBorai EstebanBorai changed the title feat: local_broadcast_ip function feat(linux): local_broadcast_ip function Feb 20, 2024
@EstebanBorai EstebanBorai merged commit 9560329 into EstebanBorai:main Feb 20, 2024
25 checks passed
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