mirror of
https://github.com/openobserve/goflow2.git
synced 2025-10-23 07:11:57 +00:00
decoders: fix netflow legacy/v5 sampling interval (#171)
This commit is contained in:
@@ -42,6 +42,8 @@ func DecodeMessage(payload *bytes.Buffer) (interface{}, error) {
|
||||
&(packet.SamplingInterval),
|
||||
)
|
||||
|
||||
packet.SamplingInterval = packet.SamplingInterval & 0x3FFF
|
||||
|
||||
packet.Records = make([]RecordsNetFlowV5, int(packet.Count))
|
||||
for i := 0; i < int(packet.Count) && payload.Len() >= 48; i++ {
|
||||
record := RecordsNetFlowV5{}
|
||||
|
Reference in New Issue
Block a user