Package iputils implements utilities to work with IP addresses.
This section is empty.
InterfaceByName is a mocking point for net.InterfaceByName, used for tests.
func ResolveIntfAddr ¶
ResolveIntfAddr takes the name of a network interface and IP version, and returns the first IP address of the interface that matches the specified IP version. If no IP version is specified (ipVer is 0), simply the first IP address is returned. TODO(manugarg): This functions is currently tested through options_test. We should fix that.