Documentation
¶
Index ¶
- func AddressToUints(toProcess net.IP) (uint64, uint64)
- func BytesToIPv6Networks(toParse []byte) ([]*net.IPNet, error)
- func FlipBitsInAddress(toFlip *net.IP, startIndex uint8, endIndex uint8) *net.IP
- func GenerateRandomAddress() *net.IP
- func GenerateRandomAddressInNetwork(network *net.IPNet) *net.IP
- func GenerateRandomAddressesInNetwork(network *net.IPNet, addrCount int) []*net.IP
- func GenerateRandomNetworks(toGenerate int, minMaskLen int32) []*net.IPNet
- func GetAdjacentNetworkAddressesFromIP(toParse *net.IP, fromNybble int, toNybble int) ([]*net.IP, error)
- func GetAdjacentNetworkAddressesFromIPs(toParse []*net.IP, fromNybble int, toNybble int) ([]*net.IP, error)
- func GetBaseAddressString(network *net.IPNet) string
- func GetBorderAddressesFromNetwork(network *net.IPNet) (*net.IP, *net.IP)
- func GetByteMask(maskLength uint8) []byte
- func GetByteWithBitsMasked(bitMaskLength uint) byte
- func GetFirst64BitsOfIP(ip *net.IP) uint64
- func GetIPSet(ips []*net.IP) map[string]*internal.Empty
- func GetIPsFromStrings(toParse []string) []*net.IP
- func GetIPv6NetworkFromBytes(toProcess []byte, maskLength uint8) (*net.IPNet, error)
- func GetIPv6NetworkFromBytesIncLength(toProcess []byte) (*net.IPNet, error)
- func GetNetworkFromUints(uints [2]uint64, length uint8) *net.IPNet
- func GetNetworksFromStrings(toParse []string) []*net.IPNet
- func GetNybbleFromIP(ip *net.IP, index int) uint8
- func GetNybblesFromIP(ip *net.IP, nybbleCount int) []uint8
- func GetNybblesFromNetwork(network *net.IPNet) []uint8
- func GetTextLinesFromIPs(addrs []*net.IP) string
- func GetUniqueIPs(ips []*net.IP, updateFreq int) []*net.IP
- func GetUniqueNetworks(networks []*net.IPNet, updateFreq int) []*net.IPNet
- func IsAddressIPv4(toCheck *net.IP) bool
- func NetworkToUints(toProcess *net.IPNet) (uint64, uint64, uint64, uint64)
- func NybblesToIP(nybbles []uint8) *net.IP
- func ReadIPsFromBinaryFile(filePath string) ([]*net.IP, error)
- func ReadIPv6NetworksFromFile(filePath string) ([]*net.IPNet, error)
- func ReadIPv6NetworksFromHexFile(filePath string) ([]*net.IPNet, error)
- func UintsToAddress(first uint64, second uint64) *net.IP
- func WriteIPsToBinaryFile(filePath string, addrs []*net.IP) error
- func WriteIPsToFatHexFile(filePath string, addrs []*net.IP) error
- func WriteIPsToHexFile(filePath string, addrs []*net.IP) error
- func WriteIPv6NetworksToFile(filePath string, networks []*net.IPNet) error
- func WriteIPv6NetworksToHexFile(filePath string, networks []*net.IPNet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlipBitsInAddress ¶
func GenerateRandomAddress ¶
func GenerateRandomNetworks ¶
func GetBaseAddressString ¶
func GetByteMask ¶
func GetByteWithBitsMasked ¶
func GetFirst64BitsOfIP ¶
func GetIPsFromStrings ¶
func GetIPv6NetworkFromBytes ¶
func GetNetworksFromStrings ¶
func GetNybblesFromNetwork ¶
func GetTextLinesFromIPs ¶
func IsAddressIPv4 ¶
func NybblesToIP ¶
func WriteIPv6NetworksToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.