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

make network calculation commutative #2806

Merged
merged 1 commit into from
Aug 11, 2017
Merged

make network calculation commutative #2806

merged 1 commit into from
Aug 11, 2017

Conversation

rade
Copy link
Member

@rade rade commented Aug 10, 2017

No description provided.

@rade rade requested a review from 2opremio August 10, 2017 10:12
for _, ip := range ips[1:] {
network.Mask = net.CIDRMask(commonIPv4PrefixLen(network.IP, ip), net.IPv4len*8)
network.IP = network.IP.Mask(network.Mask)
if ncpl := commonIPv4PrefixLen(network.IP, ip); ncpl < cpl {

This comment was marked as abuse.

@rade rade merged commit 0b283b0 into master Aug 11, 2017
@dlespiau dlespiau deleted the commutative-network-calc branch November 2, 2017 12:28
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