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

How to create CIDR from network and broadcast? #154

Open
acim opened this issue May 17, 2022 · 1 comment
Open

How to create CIDR from network and broadcast? #154

acim opened this issue May 17, 2022 · 1 comment

Comments

@acim
Copy link

acim commented May 17, 2022

So, 218.188.0.0 and 218.191.255.255 should result into 218.188.0.0/14. I don't see any method in this crate to be able to achieve this. Thank you.

@acim
Copy link
Author

acim commented May 17, 2022

Even worse, sometimes this may result in multiple CIDR's, for example 223.252.177.0 to 223.252.255.255 should result in:

223.252.177.0/24
223.252.178.0/23
223.252.180.0/22
223.252.184.0/21
223.252.192.0/18

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

1 participant