ipaddr
ipaddr copied to clipboard
Package ipaddr provides basic functions for the manipulation of IP address prefixes and subsequent addresses as described in RFC 4632 and RFC 4291
Aggregate function with specific prefix list cause the error. Interesting thing is that commenting any of subnets makes program work correct. https://go.dev/play/p/a83OovyO0mV ```go package main import ( "net" "github.com/mikioh/ipaddr" )...
It seems like on some sets of prefixes (`128.0.0.0/1` and `0.0.0.0/1` in my case), it causes infinity loop: ```golang func branchingFactorIPv4(ps []Prefix) (int, bool) { var lastBF, lastN int base...
If you call ipaddr.Parse with input that is only a single IP (127.0.0.1, 127.0.0.1/32) the supplied cursor will not return any entries via Next(). Getting the value via First() works...