utils_freebsd.go 793 B

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