Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Netflow10Decoder ¶
type Netflow10Decoder struct { Netflow10DecoderConfig // contains filtered or unexported fields }
Netflow10Decoder decode a serial number and IP address from Netflow data
func NewNetflow10Decoder ¶
func NewNetflow10Decoder(config Netflow10DecoderConfig) *Netflow10Decoder
NewNetflow10Decoder creates a new instance of a NetflowDecoder
func (*Netflow10Decoder) Decode ¶
func (nd *Netflow10Decoder) Decode(ip uint32, data []byte) (*Sensor, error)
Decode tries to decode a netflow packet. The decoder maintains a session for ever IP address so devices using different IP address can reuse templates. Once a NF10/IPFIX packet is decoded, Decode tries to find a serial number. If no serial number has been found the returned value is zero.
type Netflow10DecoderConfig ¶
type Netflow10DecoderConfig struct { ProductTypeElementID uint16 SerialNumberElementID uint16 OptionTemplateID uint16 }
Netflow10DecoderConfig contains the Netflow10Decoder configuration
type NetflowDecoder ¶
NetflowDecoder is an interface for a decoder that obtains a IP and Serial Number from Netflow data
Click to show internal directories.
Click to hide internal directories.