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

Method decode

layers/sflow.go:190–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188type SFlowDataFormat uint32
189
190func (sdf SFlowDataFormat) decode() (SFlowEnterpriseID, SFlowSampleType) {
191 leftField := sdf >> 12
192 rightField := uint32(0xFFF) & uint32(sdf)
193 return SFlowEnterpriseID(leftField), SFlowSampleType(rightField)
194}
195
196// SFlowEnterpriseID is used to differentiate between the
197// official SFlow standard, and other, vendor-specific

Callers 2

decodeFlowSampleFunction · 0.95
decodeCounterSampleFunction · 0.95

Calls 2

SFlowEnterpriseIDTypeAlias · 0.85
SFlowSampleTypeTypeAlias · 0.85

Tested by

no test coverage detected