netflowlegacy

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MAX_COUNT = 1536
)

Variables

This section is empty.

Functions

func DecodeMessage

func DecodeMessage(payload *bytes.Buffer) (interface{}, error)

Types

type ErrorVersion

type ErrorVersion struct {
	// contains filtered or unexported fields
}

func NewErrorVersion

func NewErrorVersion(version uint16) *ErrorVersion

func (*ErrorVersion) Error

func (e *ErrorVersion) Error() string

type PacketNetFlowV5

type PacketNetFlowV5 struct {
	Version          uint16
	Count            uint16
	SysUptime        uint32
	UnixSecs         uint32
	UnixNSecs        uint32
	FlowSequence     uint32
	EngineType       uint8
	EngineId         uint8
	SamplingInterval uint16
	Records          []RecordsNetFlowV5
}

func (PacketNetFlowV5) String

func (p PacketNetFlowV5) String() string

type RecordsNetFlowV5

type RecordsNetFlowV5 struct {
	SrcAddr  uint32
	DstAddr  uint32
	NextHop  uint32
	Input    uint16
	Output   uint16
	DPkts    uint32
	DOctets  uint32
	First    uint32
	Last     uint32
	SrcPort  uint16
	DstPort  uint16
	Pad1     byte
	TCPFlags uint8
	Proto    uint8
	Tos      uint8
	SrcAS    uint16
	DstAS    uint16
	SrcMask  uint8
	DstMask  uint8
	Pad2     uint16
}

func (RecordsNetFlowV5) String

func (r RecordsNetFlowV5) String() string

Jump to

Keyboard shortcuts

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