Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions producer/proto/producer_nf.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,13 @@ func ConvertNetFlowDataSet(flowMessage *ProtoProducerMessage, version uint16, ba
}
} else if version == 10 {
switch df.Type {
case netflow.IPFIX_FIELD_flowStartSysUpTime:
flowMessage.TimeFlowStartNs = uint64(binary.BigEndian.Uint32(v)) * 1e6
case netflow.IPFIX_FIELD_flowEndSysUpTime:
flowMessage.TimeFlowEndNs = uint64(binary.BigEndian.Uint32(v)) * 1e6
case netflow.IPFIX_FIELD_systemInitTimeMilliseconds:
flowMessage.TimeFlowStartNs += binary.BigEndian.Uint64(v) * 1e6
flowMessage.TimeFlowEndNs += binary.BigEndian.Uint64(v) * 1e6
case netflow.IPFIX_FIELD_flowStartSeconds:
if err := DecodeUNumber(v, &time); err != nil {
return err
Expand Down