Firstly, thank you for the library.
In the goflow/utils/sflow.go file, there are the following blocks of code:
1) Defining "ts":
ts := uint64(time.Now().UTC().Unix())
if pkt.SetTime {
ts = uint64(pkt.RecvTime.UTC().Unix())
}
2) Setting TimeReceived, TimeFlowStart, and TimeFlowEnd:
for _, fmsg := range flowMessageSet {
fmsg.TimeReceived = ts
fmsg.TimeFlowStart = ts
fmsg.TimeFlowEnd = ts
}
Currently, there is no difference between TimeFlowStart / TimeFlowEnd and TimeReceived. However, when the flag "SetTime" is set to "true", it would be very useful to distinguish between these timestamps.
Thank you!
Firstly, thank you for the library. In the goflow/utils/sflow.go file, there are the following blocks of code: 1) Defining "ts":
2) Setting TimeReceived, TimeFlowStart, and TimeFlowEnd:
Currently, there is no difference between TimeFlowStart / TimeFlowEnd and TimeReceived. However, when the flag "SetTime" is set to "true", it would be very useful to distinguish between these timestamps. Thank you!