arp

package
v0.0.0-...-3c09c9a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ethernet            = 1
	MacAddrSize         = 6
	IPv4AddrSize        = 4
	IPv4                = 0x0800
	ArpRequest   uint16 = 1
	ArpReply     uint16 = 2
)
View Source
const IP = "10.1.0.10"
View Source
const RequestTimeout = 500 * time.Millisecond

Variables

This section is empty.

Functions

func NewPayload

func NewPayload(arpOp uint16) *payload

Types

type Arp

type Arp struct {
	Device *water.Interface
	// contains filtered or unexported fields
}

func NewArp

func NewArp(device *water.Interface) *Arp

func (*Arp) HandleFrame

func (a *Arp) HandleFrame(frame ethernet.Frame)

Jump to

Keyboard shortcuts

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