 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDefaultGateway ¶
Generate the default gateway IP Address for a subnet
func GetHostIPNetworks ¶
Return Host IP Networks Ignores provided interfaces and filters loopback and non IPv4 addrs.
Types ¶
type SubnetAllocator ¶
type SubnetAllocator struct {
	// contains filtered or unexported fields
}
    func NewSubnetAllocator ¶
func NewSubnetAllocator(network string, hostBits uint32, inUse []string) (*SubnetAllocator, error)
func (*SubnetAllocator) GetNetwork ¶
func (sna *SubnetAllocator) GetNetwork() (*net.IPNet, error)
func (*SubnetAllocator) ReleaseNetwork ¶
func (sna *SubnetAllocator) ReleaseNetwork(ipnet *net.IPNet) error
       Source Files
      ¶
      Source Files
      ¶
    
- common.go
- subnet_allocator.go
 Click to show internal directories. 
   Click to hide internal directories.