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
| 186 | // significant 12 bits, and the SampleType in the least significant |
| 187 | // 20 bits. |
| 188 | type SFlowDataFormat uint32 |
| 189 | |
| 190 | func (sdf SFlowDataFormat) decode() (SFlowEnterpriseID, SFlowSampleType) { |
| 191 | leftField := sdf >> 12 |
no outgoing calls
no test coverage detected