event

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Time      time.Time
	Type      packetType
	Device    dev.Device
	Pid       int
	Truncated bool
	Len       int

	Data []byte
}

func FromPacket added in v0.4.0

func FromPacket(ci gopacket.CaptureInfo, data []byte) (*Packet, error)

func ParsePacketEvent

func ParsePacketEvent(devices map[int]dev.Device, event bpf.BpfPacketEventT) (*Packet, error)

func (Packet) Egress

func (p Packet) Egress() bool

func (Packet) Ingress

func (p Packet) Ingress() bool

type ProcessExec

type ProcessExec struct {
	Pid int

	Filename          string
	FilenameTruncated bool

	Args          []string
	ArgsTruncated bool
}

func FromPacketOptions added in v0.4.0

func FromPacketOptions(opts pcapgo.NgPacketOptions) ProcessExec

func ParseProcessExecEvent

func ParseProcessExecEvent(event bpf.BpfExecEventT) (*ProcessExec, error)

func (ProcessExec) ArgsStr

func (p ProcessExec) ArgsStr() string

func (ProcessExec) FilenameStr

func (p ProcessExec) FilenameStr() string

func (ProcessExec) MatchComm added in v0.5.2

func (p ProcessExec) MatchComm(name string) bool

Jump to

Keyboard shortcuts

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