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

TypeAlias SFlowDataSource

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

SFlowDataSource encodes a 2-bit SFlowSourceFormat in its most significant 2 bits, and an SFlowSourceValue in its least significant 30 bits. These types and values define the meaning of the inteface information presented in the sample metadata.

Source from the content-addressed store, hash-verified

91// These types and values define the meaning of the inteface information
92// presented in the sample metadata.
93type SFlowDataSource int32
94
95func (sdc SFlowDataSource) decode() (SFlowSourceFormat, SFlowSourceValue) {
96 leftField := sdc >> 30

Callers 2

decodeFlowSampleFunction · 0.85
decodeCounterSampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected