util/net/cidr/range_v6.go
crusader c8c6521c25 ing
2017-11-17 19:12:50 +09:00

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
}