Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetErrorMap ¶
func SetErrorMap(e *AtomicCounterMap)
SetErrorMap sets the map for tracking errors it gets passed in from the collector during initialization
Types ¶
type AtomicCounterMap ¶
AtomicCounterMap maps strings to integers.
var ( // AllDecoderNames contains the decoder names at runtime. AllDecoderNames = make(map[string]struct{}) // ErrorMap contains error during reassembly at runtime. ErrorMap *AtomicCounterMap )
func NewAtomicCounterMap ¶
func NewAtomicCounterMap() *AtomicCounterMap
NewAtomicCounterMap returns a new AtomicCounterMap.
type PacketInfo ¶
type PacketInfo struct { Packet gopacket.Packet Timestamp int64 SrcMAC string DstMAC string SrcIP string DstIP string }
PacketInfo contains packet meta information.
func NewPacketInfo ¶
func NewPacketInfo(p gopacket.Packet) *PacketInfo
NewPacketInfo returns a new packet summary
Click to show internal directories.
Click to hide internal directories.