responder

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARPResponder

func NewARPResponder(iface *net.Interface) (*arpResponder, error)

func NewNDPResponder

func NewNDPResponder(iface *net.Interface) (*ndpResponder, error)

Types

type Responder

type Responder interface {
	// InterfaceName returns the name of the network interface which the raw sockets binds on.
	InterfaceName() string
	// AddIP assigns the IP to the responder.
	AddIP(net.IP) error
	// RemoveIP removes the IP from the responder.
	RemoveIP(net.IP) error
	// Run starts the responder.
	Run(<-chan struct{})
}

Responder is an interface to handle ARP (IPv4)/NS (IPv6) queries using raw sockets.

Jump to

Keyboard shortcuts

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