fields

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DST_MASK = 13
View Source
const FLOWS = 3
View Source
const INPUT_SNMP = 10
View Source
const IN_BYTES = 1

CONSTANTS Actual fields...

View Source
const IN_PKTS = 2
View Source
const IPV4_DST_ADDR = 12
View Source
const IPV4_NEXT_HOP = 15
View Source
const IPV4_SRC_ADDR = 8
View Source
const IPV6_DST_ADDR = 28
View Source
const IPV6_SRC_ADDR = 27
View Source
const L4_DST_PORT = 11
View Source
const L4_SRC_PORT = 7
View Source
const LAST_SWITCHED = 21
View Source
const OUTPUT_SNMP = 14
View Source
const OUT_BYTES = 23
View Source
const OUT_PKTS = 24
View Source
const PROTOCOL = 4
View Source
const SRC_MASK = 9
View Source
const TCP_FLAGS = 6
View Source
const TIMESTAMP = 99

Extension fields

View Source
const TOS = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr6Value

type Addr6Value struct {
	Data  string
	Type  uint16
	Int   net.IP
	Bytes []byte
}

v6

func (Addr6Value) SetType

func (i Addr6Value) SetType(t uint16)

func (Addr6Value) ToBytes

func (a Addr6Value) ToBytes() []byte

func (Addr6Value) ToInt

func (i Addr6Value) ToInt() int

func (Addr6Value) ToString

func (a Addr6Value) ToString() string

type AddrValue

type AddrValue struct {
	Data  net.IP
	Type  uint16
	Int   uint32
	Bytes []byte
}

Address Values

v4

func (AddrValue) SetType

func (i AddrValue) SetType(t uint16)

func (AddrValue) ToBytes

func (a AddrValue) ToBytes() []byte

func (AddrValue) ToInt

func (i AddrValue) ToInt() int

func (AddrValue) ToString

func (a AddrValue) ToString() string

type IntValue

type IntValue struct {
	Data  int
	Type  uint16
	Bytes []byte
}

Integer Values

func (IntValue) SetType

func (i IntValue) SetType(t uint16)

func (IntValue) ToBytes

func (i IntValue) ToBytes() []byte

func (IntValue) ToInt

func (i IntValue) ToInt() int

func (IntValue) ToString

func (i IntValue) ToString() string

type Value

type Value interface {
	ToString() string
	SetType(uint16)
	ToInt() int
	ToBytes() []byte
}

Value represents the interface to flowRecord Field values Field values can be of many types but should always implement the same methods

func GetAddr

func GetAddr(p []byte) Value

Retrieve an addr value from a field

func GetAddr6

func GetAddr6(p []byte) Value

func GetInt

func GetInt(p []byte) Value

Retrieve integer values from a field

Jump to

Keyboard shortcuts

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