Documentation ¶
Index ¶
- Constants
- type Header
- type Mode
- type Netflow
- func (nf *Netflow) GetPort() int
- func (nf *Netflow) GetStats() string
- func (nf *Netflow) HasWriter() bool
- func (nf *Netflow) NewFileWriter(filename string, mode Mode, compress bool) error
- func (nf *Netflow) NewSocketWriter(network string, server string, mode Mode) error
- func (nf *Netflow) RemoveWriter(path string) error
- func (nf *Netflow) Stop()
- type Packet
- type Record
Constants ¶
View Source
const ( TCP = 6 UDP = 17 NETFLOW_HEADER_LEN = 24 NETFLOW_RECORD_LEN = 48 BUFFER_DEPTH = 1024 UDP_BUFFER_DEPTH = 65536 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Version int Count int Uptime uint32 EpochSec uint32 EpochNsec uint32 Sequence int32 }
func DecodeHeader ¶
type Netflow ¶
type Netflow struct {
// contains filtered or unexported fields
}
func NewNetflow ¶
NewNetflow returns a netflow object listening on port Netflow.Port
func (*Netflow) NewFileWriter ¶
func (*Netflow) NewSocketWriter ¶
func (*Netflow) RemoveWriter ¶
Click to show internal directories.
Click to hide internal directories.