Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedRouterData ¶
type ExtendedRouterData struct { NextHopDestinationMask uint32 NextHopSourceMask uint32 NextHop net.IP AddressType uint32 FlowDataLength uint32 EnterpriseType uint32 }
ExtendedRouterData represents sflow version 5 extended router data
type FlowSample ¶
type FlowSample struct { FlowSampleHeader *FlowSampleHeader RawPacketHeader *RawPacketHeader RawPacketHeaderData unsafe.Pointer ExtendedRouterData *ExtendedRouterData }
FlowSample is an sflow version 5 flow sample
type FlowSampleHeader ¶
type FlowSampleHeader struct { FlowRecord uint32 OutputIf uint32 InputIf uint32 DroppedPackets uint32 SamplePool uint32 SamplingRate uint32 SourceIDClassIndex uint32 SequenceNumber uint32 SampleLength uint32 EnterpriseType uint32 }
FlowSampleHeader is an sflow version 5 flow sample header
type Header ¶
type Header struct { Version uint32 AgentAddressType uint32 AgentAddress net.IP SubAgentID uint32 SequenceNumber uint32 SysUpTime uint32 NumSamples uint32 }
Header is an sflow version 5 header
type Packet ¶
type Packet struct { // A pointer to the packets headers Header *Header // A slice of pointers to FlowSet. Each element is instance of (Data)FlowSet FlowSamples []*FlowSample // Buffer is a slice pointing to the original byte array that this packet was decoded from. // This field is only populated if debug level is at least 2 Buffer []byte // contains filtered or unexported fields }
Packet is a decoded representation of a single sflow UDP packet.
Click to show internal directories.
Click to hide internal directories.