Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + var ErrNetworkOverlaps = errors.New("requested network overlaps with existing network") + var ErrNetworkOverlapsWithNameservers = errors.New("requested network overlaps with nameserver") + var ErrNoDefaultRoute = errors.New("no default route") + func ATo16(array []byte) uint16 + func ATo32(array []byte) uint32 + func ATo64(array []byte) uint64 + func CheckNameserverOverlaps(nameservers []string, toCheck *net.IPNet) error + func CheckRouteOverlaps(toCheck *net.IPNet) error + func GenerateIfaceName(prefix string, len int) (string, error) + func GenerateRandomMAC() net.HardwareAddr + func GenerateRandomName(prefix string, size int) (string, error) + func GetIfaceAddr(name string) (net.Addr, []net.Addr, error) + func IsRunningInContainer() bool + func NetworkOverlaps(netX *net.IPNet, netY *net.IPNet) bool + func NetworkRange(network *net.IPNet) (net.IP, net.IP) + func SetupTestNetNS(t *testing.T) func() + func U16ToA(val uint16) []byte + func U32ToA(val uint32) []byte + func U64ToA(val uint64) []byte