l2disco

package
v0.0.0-...-e82d903 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnsolARP

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

func NewUnsolARP

func NewUnsolARP(_ context.Context, ip net.IP, mac net.HardwareAddr, ifIndex int) (*UnsolARP, error)

NewUnsolARP returns a pointer to an object that can send unsolicited ARPs on the interface with ifIndex, for ip and mac.

func (*UnsolARP) Close

func (ua *UnsolARP) Close() error

Close releases resources.

func (*UnsolARP) Send

func (ua *UnsolARP) Send() error

Send sends an unsolicited ARP message.

type UnsolNA

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

func NewUnsolNA

func NewUnsolNA(ctx context.Context, ip net.IP, mac net.HardwareAddr, ifIndex int) (*UnsolNA, error)

NewUnsolNA returns a pointer to an object that can send unsolicited Neighbour Advertisements for ip and mac. https://datatracker.ietf.org/doc/html/rfc4861#section-4.4

func (*UnsolNA) Close

func (un *UnsolNA) Close() error

Close releases resources.

func (*UnsolNA) Send

func (un *UnsolNA) Send() error

Send sends an unsolicited ARP message.

Jump to

Keyboard shortcuts

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