netflow

package module
v0.0.0-...-8c13bb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 11 Imported by: 0

README

netflow

NetFlow version 1, 5, 7, 8, 9 & 10 (IPFIX) support for Go

Build Status GoDoc

Project status

We're still in a draft status, do not use this for processing NetFlows in an untrusted environment.

TODO

  • Expire templates with empty fields (v9)
  • Make IPFIX usable (v10)
  • Define a more clear interface for caching

Help wanted!

Please submit your pull requests and/or bug reports via GitHub.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	session.Session
}

Decoder for NetFlow messages.

func NewDecoder

func NewDecoder(s session.Session) *Decoder

NewDecoder sets up a decoder suitable for reading NetFlow packets.

func (*Decoder) Read

func (d *Decoder) Read(r io.Reader) (Message, error)

Read a single Netflow message from the network. If an error is returned, there is no guarantee the following reads will be succesful.

type Message

type Message interface {
}

Message generlized interface.

Directories

Path Synopsis
cmd
nf-dump
Command nf-dump decodes NetFlow packets from UDP datagrams.
Command nf-dump decodes NetFlow packets from UDP datagrams.
nf-dump-pcap
Command nf-dump-pcap decodes NetFlow packets from one or more PCAP files.
Command nf-dump-pcap decodes NetFlow packets from one or more PCAP files.
Package ipfix implements a decoder for the IP Flow Information Export (IPFIX) protocol.
Package ipfix implements a decoder for the IP Flow Information Export (IPFIX) protocol.
Package netflow1 contains decoders for the NetFlow version 1 protocol.
Package netflow1 contains decoders for the NetFlow version 1 protocol.
Package netflow5 contains decoders for the NetFlow version 5 protocol.
Package netflow5 contains decoders for the NetFlow version 5 protocol.
Package netflow6 contains decoders for the NetFlow version 6 protocol.
Package netflow6 contains decoders for the NetFlow version 6 protocol.
Package netflow7 contains decoders for the NetFlow version 7 protocol.
Package netflow7 contains decoders for the NetFlow version 7 protocol.
Package netflow9 implements NetFlow version 9 as specified in RFC 3954.
Package netflow9 implements NetFlow version 9 as specified in RFC 3954.
Package read provides convenience read functions to extract values from a reader.
Package read provides convenience read functions to extract values from a reader.
Package session provides sessions for the Netflow version 9 and IPFIX decoders that need to track templates bound to a session.
Package session provides sessions for the Netflow version 9 and IPFIX decoders that need to track templates bound to a session.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL