ipv4

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(subnetA, subnetB *net.IPNet) (bool, error)

Return whether subnetA fully contains subnetB

func FreeIpv4

func FreeIpv4(addr string) error

free an address back to the pool

func GetFreeIpv4

func GetFreeIpv4() (string, error)

get first IP from first free range

func GetSubnetBits

func GetSubnetBits(subnet string) (uint8, error)

func InitIpv4Counter

func InitIpv4Counter(subnet string) error

func UseIpv4

func UseIpv4(addr string) error

mark an address as in use

func UseIpv4Subnet

func UseIpv4Subnet(subnet string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL