inspection

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DO_NOTHING uint8 = iota
	BLOCK_PACKET
	DROP_PACKET
	BLOCK_CONN
	DROP_CONN
	STOP_INSPECTING
)

Variables

This section is empty.

Functions

func RegisterInspector

func RegisterInspector(name string, inspector inspectorFn, inspectVerdict network.Verdict) (index int)

RegisterInspector registers a traffic inspector.

func RunInspectors

func RunInspectors(conn *network.Connection, pkt packet.Packet) (network.Verdict, bool)

RunInspectors runs all the applicable inspectors on the given packet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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