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, 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 IPv4 address of a 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.