lldp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLldp

func IsLldp(po *packetio.PacketOut) bool

IsLldp returns whether the packet is a LLDP frame.

Types

type Daemon

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

Daemon is the implementation of the LLDP protocol.

func New

func New() *Daemon

New returns the main procotol handler.

func (*Daemon) Matched

func (d *Daemon) Matched(po *packetio.PacketOut) bool

Matched returns true if this packet can be handled by this protocol.

func (*Daemon) Process

func (d *Daemon) Process(p *packetio.Packet) error

Process dispatches the packet to the corresponding port handler.

func (*Daemon) Reconcile

func (d *Daemon) Reconcile(ctx context.Context, intent *oc.Root, c *ygnmi.Client) error

Reconcile reconciles LLDP for all ports.

func (*Daemon) Start

func (d *Daemon) Start()

Start starts the procotol handler.

func (*Daemon) Stop

func (d *Daemon) Stop()

Stop stops the procotol handler by stopping all port daemons.

Jump to

Keyboard shortcuts

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