michaelritsema / ipfix

IPFIX parser package for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipfix

Package ipfix implements an IPFIX (RFC 5101) parser and interpreter.

Build Status API Documentation MIT License

An input stream in the form of an io.Reader, net.PacketConn, or a []byte is read and chunked into messages. Template management and the standard IPFIX types are implemented so a fully parsed data set can be produced. Vendor fields can be added at runtime.

Example

To read an IPFIX stream, create a Session around a Reader, then call ParseReader repeatedly.

To add a vendor field to the dictionary so that it will be resolved by Interpret, create a DictionaryEntry and call AddDictionaryEntry.

e := ipfix.DictionaryEntry{Name: "someVendorField", FieldId: 42, EnterpriseId: 123456, Type: ipfix.Int32}
s.AddDictionaryEntry(e)

License

The MIT license.

Usage

See the documentation.

About

IPFIX parser package for Go

License:MIT License


Languages

Language:Go 100.0%Language:Shell 0.0%