utils

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper interface {
	DumpRawIn(from netip.AddrPort, to netip.AddrPort, packet []byte)
	DumpRawOut(to netip.AddrPort, from netip.AddrPort, packet []byte)
}

type PacketDumper

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

func NewPacketDumper

func NewPacketDumper(dumpPath string, maxFiles, maxSizeBytes, maxPackets int) (*PacketDumper, error)

func (*PacketDumper) Close

func (dumper *PacketDumper) Close(removeTrace bool)

func (*PacketDumper) DumpRawIn

func (dumper *PacketDumper) DumpRawIn(from netip.AddrPort, to netip.AddrPort, packet []byte)

func (*PacketDumper) DumpRawOut

func (dumper *PacketDumper) DumpRawOut(to netip.AddrPort, from netip.AddrPort, packet []byte)

func (*PacketDumper) GetPacketsWritten

func (dumper *PacketDumper) GetPacketsWritten() uint64

func (*PacketDumper) ReadTraceMap

func (dumper *PacketDumper) ReadTraceMap(traceMap *ebpf.Map)

func (*PacketDumper) Write

func (dumper *PacketDumper) Write()

type PacketToWrite

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

Jump to

Keyboard shortcuts

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