Skip to content

lebauce/ipfix

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%