Documentation
¶
Overview ¶
Package dpi implements an interface for application layer classification via bindings to nDPI and libprotoident
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NDPIVersion is the version of nDPI library linked against NDPIVersion = "unknown" // LibprotoidentVersion is the version of libprotoident library linked against LibprotoidentVersion = "unknown" // GoDPIVersion is the version of go-dpi wrapper used GoDPIVersion = "v1.2.0" )
These variables can be set at build time using ldflags Example: -ldflags "-X github.com/dreadl0ck/netcap/dpi.NDPIVersion=4.14.0"
Functions ¶
func Destroy ¶
func Destroy()
Destroy tears down godpi and frees the memory allocated for cgo returned errors are logged to stdout.
func GetProtocols ¶
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 GetVersionInfo ¶ added in v0.7.3
func GetVersionInfo() string
GetVersionInfo returns a formatted string with DPI library versions
func HasDPISupport ¶ added in v0.7.3
func HasDPISupport() bool
HasDPISupport returns true when DPI support is compiled in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.