 Documentation
      ¶
      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
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 (*Range) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface
func (*Range) Network ¶
Network returns the network that this range represents, if any
       Source Files
      ¶
      Source Files
      ¶
    
- ip.go
 Click to show internal directories. 
   Click to hide internal directories.