github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/libnetwork/netutils/utils_windows.go (about) 1 package netutils 2 3 import ( 4 "net" 5 6 "github.com/docker/libnetwork/types" 7 ) 8 9 // ElectInterfaceAddresses looks for an interface on the OS with the specified name 10 // and returns its IPv4 and IPv6 addresses in CIDR form. If the interface does not exist, 11 // it chooses from a predifined list the first IPv4 address which does not conflict 12 // with other interfaces on the system. 13 func ElectInterfaceAddresses(name string) (*net.IPNet, []*net.IPNet, error) { 14 return nil, nil, types.NotImplementedErrorf("not supported on windows") 15 } 16 17 // FindAvailableNetwork returns a network from the passed list which does not 18 // overlap with existing interfaces in the system 19 func FindAvailableNetwork(list []*net.IPNet) (*net.IPNet, error) { 20 return nil, types.NotImplementedErrorf("not supported on windows") 21 }