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.
| 91 | // These types and values define the meaning of the inteface information |
| 92 | // presented in the sample metadata. |
| 93 | type SFlowDataSource int32 |
| 94 | |
| 95 | func (sdc SFlowDataSource) decode() (SFlowSourceFormat, SFlowSourceValue) { |
| 96 | leftField := sdc >> 30 |
no outgoing calls
no test coverage detected