-
Notifications
You must be signed in to change notification settings - Fork 108
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
CoveringNetworks #43
base: master
Are you sure you want to change the base?
CoveringNetworks #43
Conversation
net := rnet.NewNetwork(network) | ||
return p.coveringNetworks(net) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! btw is new implementation needed, could we not just do the following?
net := rnet.NewNetwork(network) | |
return p.coveringNetworks(net) | |
return p.ContainingNetworks(network.IP.Mask(network.IPMask)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this method. But i've discover Covers function, and decided to use it.
I've added "CoveringNetworks" search feature. It's like ContainingNetworks() for but for IPnet instead of single IP.