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

TypeAlias SFlowFlowDataFormat

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

Flow samples have the following structure. Note the bit fields to encode the Enterprise ID and the Flow record format: type 1 0 15 31 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | 20 bit Interprise (0) |12 bit format | +--+--+--+--+--+--+--+--

Source from the content-addressed store, hash-verified

433// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
434
435type SFlowFlowDataFormat uint32
436
437func (fdf SFlowFlowDataFormat) decode() (SFlowEnterpriseID, SFlowFlowRecordType) {
438 leftField := fdf >> 12

Calls

no outgoing calls

Tested by

no test coverage detected