util/net/cidr/range_v6.go

44 lines
729 B
Go
Raw Permalink Normal View History

2017-11-17 10:07:00 +00:00
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 {
2017-11-17 10:12:50 +00:00
return nil
2017-11-17 10:07:00 +00:00
}
func (cr *cidrRangeIPv6) Last() net.IP {
2017-11-17 10:12:50 +00:00
return nil
2017-11-17 10:07:00 +00:00
}
2017-11-22 05:52:17 +00:00
func (cr *cidrRangeIPv6) Range() []net.IP {
return nil
}
2017-11-22 06:07:33 +00:00
func (cr *cidrRangeIPv6) Ranges(startIP net.IP, endIP net.IP, include []net.IP, exclude []net.IP) ([]net.IP, error) {
return nil, nil
2017-11-17 10:07:00 +00:00
}
func (cr *cidrRangeIPv6) Broadcast() net.IP {
2017-11-17 10:12:50 +00:00
return nil
2017-11-17 10:07:00 +00:00
}
func (cr *cidrRangeIPv6) Network() net.IP {
2017-11-17 10:12:50 +00:00
return nil
2017-11-17 10:07:00 +00:00
}
2017-11-17 10:12:50 +00:00
func (cr *cidrRangeIPv6) Next(ip net.IP) net.IP {
return nil
2017-11-17 10:07:00 +00:00
}
2017-11-17 10:12:50 +00:00
func (cr *cidrRangeIPv6) Previous(ip net.IP) net.IP {
return nil
2017-11-17 10:07:00 +00:00
}