l2responder

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIOCADDMULTI = 0x8931
	SIOCDELMULTI = 0x8932
	ETH_ALEN     = 6
)

from linux headers, necessary for ioctl

Variables

View Source
var Cell = cell.Module(
	"l2-responder",
	"L2 Responder Reconciler",

	cell.Provide(
		tables.NewL2AnnounceTable,
		statedb.RWTable[*tables.L2AnnounceEntry].ToTable,
	),
	cell.Invoke(NewL2ResponderReconciler),
	cell.Provide(newNeighborNetlink),
)

Cell provides the L2 Responder Reconciler. This component takes the desired state, calculated by the L2 announcer component from the StateDB table and reconciles it with the L2 responder maps. The L2 Responder Reconciler watches for incremental changes in the table and applies these incremental changes immediately and it periodically perform full reconciliation as redundancy.

Functions

func NewL2ResponderReconciler

func NewL2ResponderReconciler(params params) *l2ResponderReconciler

Types

type McMACEntry added in v1.19.0

type McMACEntry struct {
	IfIndex int
	MAC     [6]byte
}

Used for IPv6 L2 Sol. Node. MC MAC sync

type McMACMap added in v1.19.0

type McMACMap map[McMACEntry]mac.MAC

func (McMACMap) Add added in v1.19.0

func (m McMACMap) Add(ifIndex int, ip netip.Addr)

Jump to

Keyboard shortcuts

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