Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderSize int = 24 RecordSize int = 48 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type NFv5 ¶
type NFv5 struct {
NFv5Header
Recs [30]NFv5Record
}
type NFv5Header ¶
type NFv5Header struct {
Version uint16
Count uint16
Uptime uint32
Sec uint32
Nsec uint32
Sequence uint32
EngineType byte
EngineID byte
SampleMode byte
SampleInterval uint16
}
func (*NFv5Header) Decode ¶
func (h *NFv5Header) Decode(b []byte) error
Decode uses the golang standard method of extracting items using the binary package
func (*NFv5Header) Encode ¶
func (h *NFv5Header) Encode() (b []byte)
Encode encodes a NFv5Header into a byte array
type NFv5Record ¶
type NFv5Record struct {
Src net.IP
Dst net.IP
Next net.IP
Input uint16
Output uint16
Pkts uint32
Bytes uint32
UptimeFirst uint32
UptimeLast uint32
SrcPort uint16
DstPort uint16
Pad byte
Flags byte
Protocol byte
ToS byte
SrcAs uint16
DstAs uint16
SrcMask byte
DstMask byte
Pad2 uint16
// contains filtered or unexported fields
}
func (*NFv5Record) Decode ¶
func (nr *NFv5Record) Decode(b []byte) error
Decode pulls a record out of the provided buffer no pointers are held on the buffer, so it can be reused
Click to show internal directories.
Click to hide internal directories.