Documentation ¶
Index ¶
- func CreateBitset(numBitsWide uint) *bitset.BitSet
- func GetIpNumber(subnetIp string, subnetLen uint, allocSubnetLen uint, hostIp string) (uint, error)
- func GetLocalIp() (string, error)
- func GetSubnetIp(subnetIp string, subnetLen uint, allocSubnetLen, hostId uint) (string, error)
- func InitSubnetBitset(b *bitset.BitSet, subnetLen uint)
- func ParseCIDR(cidrStr string) (string, uint, error)
- type TagRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBitset ¶
initialize a bit set with 2^numBitsWide bits
func GetIpNumber ¶
func GetLocalIp ¶
func GetSubnetIp ¶
func InitSubnetBitset ¶
initialize a bit set with 2^(32 - subnetLen) bits
Types ¶
Click to show internal directories.
Click to hide internal directories.