filter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketFilter

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

PacketFilter represents wrapper for bpf filter

func New

func New() *PacketFilter

New creates new filter

func (*PacketFilter) GetBpfFilter

func (filter *PacketFilter) GetBpfFilter() []bpf.RawInstruction

GetBpfFilter return bpf filter

func (*PacketFilter) SetPort

func (filter *PacketFilter) SetPort(port uint32)

SetPort creates new bpf filter for src and dst port

Jump to

Keyboard shortcuts

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