Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlowDirection ¶
type FlowDirection uint8
const ( Ingress FlowDirection = iota Egress )
func (FlowDirection) String ¶
func (d FlowDirection) String() string
type FlowEvent ¶
type FlowEvent struct { TimeReceived time.Time // Time packet was read off socket. TimeCreated time.Time // Time record was generated by "router". SequenceNum uint32 // Message sequence number. Type FlowType // Flow type (e.g. Netflow v9, IPFIX) // Flow exporter's address. DeviceAddr net.IP // Flow times. StartTime time.Time LastTime time.Time Duration time.Duration // Flow volume. Bytes uint64 Packets uint64 Direction *FlowDirection // Layer 3 info. SrcMAC net.HardwareAddr DstMAC net.HardwareAddr // IP version. https://www.iana.org/assignments/version-numbers/version-numbers.xhtml IPVersion uint8 // 4 = ipv4, 6=ipv6 IPClassOfTraffic uint8 // TOS for IPv4, Traffic Class for IPv6. SrcIP net.IP DstIP net.IP SrcLocality Locality DstLocality Locality SrcPort uint16 DstPort uint16 Locality Locality TCPFlags TCPFlag // Layer 4 protocol (transport). Comes from the IPv4 and IPv6 headers. // Netflow fields: protocolIdentifier (IPv4) and nextHeaderIPv6. TransportProtocol IPProtocol // Stable 5-tuple that's the same for both flow dirs. FiveTuple string FiveTupleHash string // VLANs IngressVLAN uint16 EgressVLAN uint16 // Raw Netflow fields. Netflow map[string]interface{} }
type Flowbeat ¶
type Flowbeat struct {
// contains filtered or unexported fields
}
Flowbeat configuration.
type IPProtocol ¶
type IPProtocol uint8
const ( ICMP IPProtocol = 1 TCP IPProtocol = 6 UDP IPProtocol = 17 IPv6ICMP IPProtocol = 58 )
func (IPProtocol) String ¶
func (p IPProtocol) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.