MCPcopy Index your code
hub / github.com/google/gopacket / SFlowDataFormat

TypeAlias SFlowDataFormat

layers/sflow.go:188–188  ·  view source on GitHub ↗

An SFlow datagram's outer container has the following structure: 0 15 31 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | int sFlow version (2|4|5) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | int IP version of the Agent (1

Source from the content-addressed store, hash-verified

186// significant 12 bits, and the SampleType in the least significant
187// 20 bits.
188type SFlowDataFormat uint32
189
190func (sdf SFlowDataFormat) decode() (SFlowEnterpriseID, SFlowSampleType) {
191 leftField := sdf >> 12

Callers 3

DecodeFromBytesMethod · 0.85
decodeFlowSampleFunction · 0.85
decodeCounterSampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected