dpi

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dpi implements an interface for application layer classification via bindings to nDPI and libprotoident

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy()

Destroy tears down godpi and frees the memory allocated for cgo returned errors are logged to stdout.

func GetProtocols

func GetProtocols(packet gopacket.Packet) map[string]ClassificationResult

GetProtocols returns a map of all the identified protocol names to a result datastructure packets are identified with libprotoident, nDPI and a few custom heuristics from godpi.

func Init

func Init()

Init initializes the deep packet inspection engines.

func IsEnabled

func IsEnabled() bool

IsEnabled will return true if goDPI has been initialized

func NewProto

func NewProto(res *ClassificationResult) *types.Protocol

NewProto initializes a new protocol.

Types

This section is empty.

Jump to

Keyboard shortcuts

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