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 | +--+--+--+--+--+--+--+--
| 433 | // +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
| 434 | |
| 435 | type SFlowFlowDataFormat uint32 |
| 436 | |
| 437 | func (fdf SFlowFlowDataFormat) decode() (SFlowEnterpriseID, SFlowFlowRecordType) { |
| 438 | leftField := fdf >> 12 |
no outgoing calls
no test coverage detected