ebpfxdp

package
v0.0.0-...-c4656d9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgramName  = "storm_control"
	StatsMapName = "intf_stats"
	DropMapName  = "drop_intf"
)

Variables

View Source
var KernelProgramBytes []byte

Functions

func LoadCollection

func LoadCollection() (*ebpf.Collection, error)

Types

type DropPKT

type DropPKT struct {
	Broadcast uint8
	IPv4MCast uint8
	IPv6MCast uint8
	Multicast uint8
}

type PacketCounter

type PacketCounter struct {
	Broadcast  TrafInfo
	IPv4MCast  TrafInfo
	IPv6MCast  TrafInfo
	OtherMcast TrafInfo
}

type TrafInfo

type TrafInfo struct {
	Passed  uint64
	Dropped uint64
}

Jump to

Keyboard shortcuts

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