Documentation ¶
Index ¶
- Variables
- func GetDefaultGatewayIP(iface *net.Interface) (gatewayIP net.IP, err error)
- func GetDefaultInterface() (iface *net.Interface, ifaceIP net.IP, err error)
- func GetInterfaceIP(iface *net.Interface) (ifaceIP net.IP, err error)
- func GetLocalSubnetInterface(dstSubnet *net.IPNet) (iface *net.Interface, ifaceIP net.IP, err error)
- func GetLocalSubnetInterfaceIP(iface *net.Interface, dstSubnet *net.IPNet) (net.IP, error)
- func ParseIPNet(subnet string) (*net.IPNet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAddr = errors.New("invalid IP subnet/host")
Functions ¶
func GetDefaultGatewayIP ¶
func GetDefaultInterface ¶
func GetLocalSubnetInterface ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.