netflow

package
v0.0.0-...-5f17d81 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Proto = map[string]string{}/* 138 elements not displayed */

Functions

func Dump

func Dump(metrics []Metric) []string

func ProtoToName

func ProtoToName(p string) string

ProtoToName - Get Protocol Id and return Protocol Name

Types

type Metric

type Metric struct {
	FlowVersion         string `header:"version"`
	NFSender            string `header:"exporter"`
	Last                string `header:"last"`
	First               string `header:"first"`
	Bytes               string `header:"bytes"`
	Packets             string `header:"packets"`
	InBytes             string `header:"bytesIn"`
	InPacket            string `header:"packetsIn"`
	OutBytes            string `header:"bytesOut"`
	OutPacket           string `header:"packetsOut"`
	InEthernet          string `header:"inEth"`
	OutEthernet         string `header:"outEth"`
	SrcIP               string `header:"srcIp"`
	SrcIp2lCountryShort string `header:"sCountry_S"`
	SrcIp2lCountryLong  string `header:"sCountry_L"`
	SrcIp2lState        string `header:"sState"`
	SrcIp2lCity         string `header:"sCity"`
	SrcIp2lLat          string `header:"sLat"`
	SrcIp2lLong         string `header:"sLong"`
	DstIP               string `header:"dstIp"`
	DstIp2lCountryShort string `header:"dCountry_S"`
	DstIp2lCountryLong  string `header:"dCountry_L"`
	DstIp2lState        string `header:"dState"`
	DstIp2lCity         string `header:"dCity"`
	DstIp2lLat          string `header:"dLat"`
	DstIp2lLong         string `header:"dLong"`
	Protocol            string `header:"proto"`
	SrcToS              string `header:"srcToS"`
	SrcPort             string `header:"srcPort"`
	DstPort             string `header:"dstPort"`
	FlowSamplerId       string `header:"flowId"`
	VendorPROPRIETARY   string `header:"vendor"`
	NextHop             string `header:"nextHop"`
	DstMask             string `header:"dstMask"`
	SrcMask             string `header:"srcMask"`
	TCPFlags            string `header:"tcpFlags"`
	Direction           string `header:"direction"`
	DstAs               string `header:"dstAs"`
	SrcAs               string `header:"srcAs"`
}

func PrepareIPFIX

func PrepareIPFIX(addr string, m *ipfix.Message) []Metric

func PrepareV1

func PrepareV1(addr string, p *netflow1.Packet) []Metric

func PrepareV5

func PrepareV5(addr string, p *netflow5.Packet) []Metric

func PrepareV6

func PrepareV6(addr string, p *netflow6.Packet) []Metric

func PrepareV7

func PrepareV7(addr string, p *netflow7.Packet) []Metric

func PrepareV9

func PrepareV9(addr string, p *netflow9.Packet) []Metric

Jump to

Keyboard shortcuts

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