network

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceIPAddress

func GetInterfaceIPAddress(iface *net.Interface) (net.IP, error)

func GetMACAddress

func GetMACAddress(iface *net.Interface, target net.IP) (net.HardwareAddr, error)

GetMACAddress returns the MAC address of a given target IP address and uses the given interface to send the ARP request

func GetValidInterface

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

GetValidInterface returns a valid interface used for packet sending and capture

Types

This section is empty.

Jump to

Keyboard shortcuts

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