Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Lua dissector nanoseconds since epoch

My Lua dissector needs to handle an 8-byte timestamp field that contains an integer representing nanoseconds since epoch. This is what I have so far...

ProtoField.absolute_time("s4v2_1.header.common.timestamp", "Timestamp", base.UTC)

A date-time is printed in the dissector, but it's not correct. How can I get it to correctly calculate the date-time?

Lua dissector nanoseconds since epoch

My Lua dissector needs to handle an 8-byte timestamp field that contains an integer representing nanoseconds since epoch. This is what I have so far...

ProtoField.absolute_time("s4v2_1.header.common.timestamp", ProtoField.absolute_time("myheader.timestamp", "Timestamp", base.UTC)

A date-time is printed in the dissector, but it's not correct. How can I get it to correctly calculate the date-time?