netutils

package
v0.0.0-...-2da05cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultGatewayInterface

func GetDefaultGatewayInterface() (*net.Interface, error)

GetDefaultGatewayInterface returns the name of the interface that has the default v4 gateway.

func GetDefaultV6GatewayInterface

func GetDefaultV6GatewayInterface() (*net.Interface, error)

GetDefaultV6GatewayInterface returns the name of the interface that has the default v6 gateway.

func GetInterfaceByIP

func GetInterfaceByIP(ip net.IP) (*net.Interface, error)

GetInterfaceByIP returns the interface that has the given IPv4 address.

func GetInterfaceByIPv6

func GetInterfaceByIPv6(ip net.IP) (*net.Interface, error)

GetInterfaceByIPv6 returns the interface that has the given IPv6 address.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL