40 lines
607 B
Go
40 lines
607 B
Go
package cidr
|
|
|
|
import "net"
|
|
|
|
type cidrRangeIPv6 struct {
|
|
cidrNet *net.IPNet
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Contains(ip net.IP) bool {
|
|
return cr.cidrNet.Contains(ip)
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) First() net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Last() net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Range(exclude []net.IP) []net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Broadcast() net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Network() net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Next(ip net.IP) net.IP {
|
|
return nil
|
|
}
|
|
|
|
func (cr *cidrRangeIPv6) Previous(ip net.IP) net.IP {
|
|
return nil
|
|
}
|