proxyarp

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArpOffsetHardwareType = 0  // 2 bytes
	ArpOffsetProtocolType = 2  // 2 bytes
	ArpOffsetHardwareSize = 4  // 1 byte
	ArpOffsetProtocolSize = 5  // 1 byte
	ArpOffsetOpcode       = 6  // 2 bytes
	ArpOffsetSenderMAC    = 8  // 6 bytes
	ArpOffsetSenderIP     = 14 // 4 bytes
	ArpOffsetTargetMAC    = 18 // 6 bytes
	ArpOffsetTargetIP     = 24 // 4 bytes
)

ARP packet field offsets (in bytes)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyARP

type ProxyARP struct {
	// contains filtered or unexported fields
}

Really simple Proxy ARP implementation.

func NewProxyARP

func NewProxyARP(mac tcpip.LinkAddress) *ProxyARP

func (*ProxyARP) Reply

func (p *ProxyARP) Reply(reqFrame, respFrame []byte) (int, error)

Jump to

Keyboard shortcuts

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