ndproxy

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAFlagRouter    = 0x80000000
	NAFlagSolicited = 0x40000000
	NAFlagOverride  = 0x20000000
)

Flags for NA (RFC 4861 §4.4).

View Source
const (
	ICMPv6NeighborAdvertSize = header.ICMPv6NeighborAdvertMinimumSize + tllaoOptLen
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NDProxy

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

Really simple Neighbor Discovery Proxy implementation.

func NewNDProxy

func NewNDProxy(mac tcpip.LinkAddress) *NDProxy

func (*NDProxy) Reply

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

Reply reads an Ethernet+IPv6+ICMPv6 Neighbor Solicitation in reqFrame and writes an Ethernet+IPv6+ICMPv6 Neighbor Advertisement into respFrame. Returns the total response length.

Jump to

Keyboard shortcuts

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