lldp

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package lldp implements sending lldp packets.

Index

Constants

View Source
const (

	// TC_PRIO_CONTROL is required to be set as socket option,
	// otherwise newer intel nics will not forward packets from this socket
	// defined here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/pkt_sched.h#n26
	TC_PRIO_CONTROL = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon is a lldp daemon

func NewDaemon

func NewDaemon(log *slog.Logger, systemName, systemDescription, interfaceName string, interval time.Duration) (*Daemon, error)

NewDaemon create a new LLDPD instance for the given interface

func (*Daemon) Start

func (l *Daemon) Start()

Start spawn a goroutine which sends LLDP PDU's every interval given.

Jump to

Keyboard shortcuts

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