Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol string
const ( ProtocolICMPv4 Protocol = "ICMPv4" ProtocolICMPv6 Protocol = "ICMPv6" ProtocolHTTP Protocol = "HTTP" ProtocolTLS Protocol = "TLS" ProtocolSSL Protocol = "SSL" ProtocolFTP Protocol = "FTP" ProtocolSSH Protocol = "SSH" ProtocolSMTP Protocol = "SMTP" ProtocolDNS Protocol = "DNS" ProtocolTCP Protocol = "TCP" ProtocolUDP Protocol = "UDP" ProtocolUnknown Protocol = "UNKNOWN" )
func Classify ¶
Classify tries to identify network traffic by doing spot checks of the provided packet. The function will cache certain packages to improve detection rate
func ClassifyByPorts ¶ added in v1.20200421.0
ClassifyByPorts will return protocol associated by the standard port mapping. This can be seen as fallback option in case e.g. the packet inspection of Classify returns ProtocolUnknown.
type TCPModuleFTP ¶
type TCPModuleFTP struct{}
func (TCPModuleFTP) Protocol ¶
func (module TCPModuleFTP) Protocol() Protocol
type TCPModuleHTTP ¶
type TCPModuleHTTP struct{}
func (TCPModuleHTTP) Protocol ¶
func (module TCPModuleHTTP) Protocol() Protocol
type TCPModuleSMTP ¶
type TCPModuleSMTP struct{}
func (TCPModuleSMTP) Protocol ¶
func (module TCPModuleSMTP) Protocol() Protocol
type TCPModuleSSH ¶
type TCPModuleSSH struct{}
func (TCPModuleSSH) Protocol ¶
func (module TCPModuleSSH) Protocol() Protocol
type TCPModuleSSL ¶
type TCPModuleSSL struct{}
func (TCPModuleSSL) Protocol ¶
func (module TCPModuleSSL) Protocol() Protocol
type TCPModuleTLS ¶
type TCPModuleTLS struct{}
func (TCPModuleTLS) Protocol ¶
func (module TCPModuleTLS) Protocol() Protocol
type TCPModules ¶
type TCPModules []TCPModule
type UDPModuleDNS ¶
type UDPModuleDNS struct{}
func (UDPModuleDNS) Protocol ¶
func (module UDPModuleDNS) Protocol() Protocol
type UDPModules ¶
type UDPModules []UDPModule
Click to show internal directories.
Click to hide internal directories.