Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFlowKey ¶
func GetFlowKey(srcIP, dstIP uint64, protocol uint8, srcPort, dstPort uint16) flows.FlowKeyType
GetFlowKey returns the Flow key. Is symmetric so A:46254<-->B:80 returns the same key in both directions
Types ¶
type PacketData ¶
PacketData contains the basic information from the packet source
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser multithreads parsing of packets
func NewParser ¶
func NewParser(p *pool.Pools, sortingRingBufferSize int64, numParserThreads int, samplingrate float64, numParserChannel int) *Parser
NewParser returns a new parser
func (*Parser) ParsePacket ¶
ParsePacket adds a packet to the parser (buffered)
Click to show internal directories.
Click to hide internal directories.