decoders: fix netflow legacy/v5 sampling interval (#171)

This commit is contained in:
Louis
2023-05-25 06:10:28 -07:00
committed by GitHub
parent e657df6080
commit e5696f114b

View File

@@ -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{}