packetparser

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

package packetparser contains the Retina packetparser plugin. It utilizes eBPF to parse packets and generate flow events.

Index

Constants

View Source
const (
	Name api.PluginName = "packetparser"

	Veth   string = "veth"
	Device string = "device"
)

Variables

This section is empty.

Functions

func New

func New(cfg *kcfg.Config) api.Plugin

New creates a packetparser plugin.

func TC_H_MAKE

func TC_H_MAKE(maj, min uint32) uint32

Types

type IFilter

type IFilter interface {
	Add(info *tc.Object) error
}

type IPerf

type IPerf interface {
	Read() (perf.Record, error)
	Close() error
}

type IQdisc

type IQdisc interface {
	Add(info *tc.Object) error
	Delete(info *tc.Object) error
}

Define the interfaces.

type ITc

type ITc interface {
	Qdisc() *tc.Qdisc
	Filter() *tc.Filter
	Close() error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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