frontends

package
v0.0.0-...-3b9963d Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FLOWS = fields.FLOWS
View Source
const IN_BYTES = fields.IN_BYTES

CONSTANTS Actual fields...

View Source
const IN_PKTS = fields.IN_PKTS
View Source
const IPV4_DST_ADDR = fields.IPV4_DST_ADDR
View Source
const IPV4_NEXT_HOP = fields.IPV4_NEXT_HOP
View Source
const IPV4_SRC_ADDR = fields.IPV4_SRC_ADDR
View Source
const L4_DST_PORT = fields.L4_DST_PORT
View Source
const L4_SRC_PORT = fields.L4_SRC_PORT
View Source
const LAST_SWITCHED = fields.LAST_SWITCHED
View Source
const OUT_BYTES = fields.OUT_BYTES
View Source
const OUT_PKTS = fields.OUT_PKTS
View Source
const PROTOCOL = fields.PROTOCOL
View Source
const SRC_MASK = fields.SRC_MASK
View Source
const TCP_FLAGS = fields.TCP_FLAGS
View Source
const TOS = fields.TOS

Variables

Functions

func Route

func Route(nfp netflowPacket, p []byte, start uint16) netflowPacket

Route Takes an entire packet slice, and routes each flowset to the correct handler

Requires

netflowPacket : netflowpacket struct
[]byte		  : Packet bytes
uint16		  : Byte index to start at (skip the headers, etc)

Types

type Frontend

type Frontend interface {
	Start()
	Configure(config map[string]string, backend backends.Backend)
}

Frontends are inbound interfaces for data

type Netflow

type Netflow struct {
	// Hey! Have you got any of those maps left?!?!
	// Uuuh yeah, a couple
	// map[SOURCE IP][SOURCE ID][TEMPLATE ID]
	Templates map[uint32]map[uint32]map[uint16]netflowPacketTemplate
	BindAddr  net.IP
	BindPort  int
	// contains filtered or unexported fields
}

GENERICS

Netflow listener and main object

func (*Netflow) Configure

func (n *Netflow) Configure(config map[string]string, b backends.Backend)

func (Netflow) Start

func (nf Netflow) Start()

Jump to

Keyboard shortcuts

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