arpx

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TargetIsLoopback = utils.Error("loopback")
	LinkTypeIsNull   = utils.Error("link type is null")
)

Functions

func Arp

func Arp(ifaceName string, target string) (net.HardwareAddr, error)

func ArpIPAddressesWithContext

func ArpIPAddressesWithContext(ctx context.Context, ifaceName string, addrs string) (map[string]net.HardwareAddr, error)

func ArpWithContext

func ArpWithContext(ctx context.Context, ifaceName string, target string) (net.HardwareAddr, error)

func ArpWithPcap added in v1.3.1

func ArpWithPcap(ctx context.Context, ifaceName string, targets string) (map[string]net.HardwareAddr, error)

func ArpWithPcapFirst added in v1.3.1

func ArpWithPcapFirst(ctx context.Context, ifaceName string, target string) (net.HardwareAddr, error)

func ArpWithTimeout

func ArpWithTimeout(timeoutContext time.Duration, ifaceName string, target string) (net.HardwareAddr, error)

func IsLoopback

func IsLoopback(t string) bool

func RouteAndArpWithTimeout added in v1.3.1

func RouteAndArpWithTimeout(t time.Duration, target string) (net.HardwareAddr, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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