Documentation ¶
Index ¶
- Variables
- func CheckNameserverOverlaps(nameservers []string, toCheck *net.IPNet) error
- func CheckRouteOverlaps(toCheck *net.IPNet) error
- func GetDefaultRouteIface() (*net.Interface, error)
- func GetIfaceAddr(name string) (net.Addr, []net.Addr, error)
- func NetworkOverlaps(netX *net.IPNet, netY *net.IPNet) bool
- func NetworkRange(network *net.IPNet) (net.IP, net.IP)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNetworkOverlapsWithNameservers = errors.New("requested network overlaps with nameserver") ErrNetworkOverlaps = errors.New("requested network overlaps with existing network") )
View Source
var (
ErrNoDefaultRoute = errors.New("no default route")
)
Functions ¶
func CheckNameserverOverlaps ¶
func CheckRouteOverlaps ¶
func GetDefaultRouteIface ¶
func GetIfaceAddr ¶
Return the first IPv4 address and slice of IPv6 addresses for the specified network interface
func NetworkOverlaps ¶
Detects overlap between one IPNet and another
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.