garp

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ARP protocol opcodes.
	ARPOP_REQUEST uint16 = 1 // ARP request
	ARPOP_REPLY   uint16 = 2 // ARP reply

	// Ethernet Protocol identifiers.
	ETH_TYPE_IPV4 uint16 = 0x0800 // Internet Protocol v4
)

Variables

This section is empty.

Functions

func Send

func Send(ctx context.Context, ifname, ipstr string, count, interval uint) error

Send sends a gratuitous ARP message through the specified interface COUNT times (or until the context is closed) with a given INTERVAL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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