Documentation ¶
Index ¶
- func AllOnesAddr(subnet *net.IPNet) net.IP
- func AllZerosAddr(subnet *net.IPNet) net.IP
- func Empty(i net.IPNet) bool
- func IsRoutableIP(ip net.IP, subnet *net.IPNet) bool
- func IsUnspecifiedIP(ip net.IP) bool
- func IsUnspecifiedSubnet(n *net.IPNet) bool
- func ParseIPandMask(s string) (net.IPNet, error)
- type Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllOnesAddr ¶
AllOnesAddr returns the all-ones address for a subnet
func AllZerosAddr ¶
AllZerosAddr returns the all-zeros address for a subnet
func IsUnspecifiedIP ¶
func IsUnspecifiedSubnet ¶
Types ¶
type Range ¶
type Range struct { FirstIP net.IP `vic:"0.1" scope:"read-only" key:"first"` LastIP net.IP `vic:"0.1" scope:"read-only" key:"last"` }
func ParseRange ¶
func (*Range) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface
func (*Range) UnmarshalText ¶
UmarshalText implements the encoding.TextUnmarshaler interface
Click to show internal directories.
Click to hide internal directories.