Ask Your Question

wwtegel's profile - activity

2019-12-05 12:03:32 +0000 received badge  Popular Question (source)
2019-01-07 20:21:24 +0000 commented answer How to handle 6 byte unsigned integer field in lua dissector?

Thanks. My script example might already be right... hardest bug to find. Your example reminded me that parent:add is us

2019-01-07 20:21:06 +0000 commented answer How to handle 6 byte unsigned integer field in lua dissector?

Thanks. My script example might already be right... hardest bug to find. Your example reminded me that parent:add is us

2019-01-07 20:17:16 +0000 marked best answer How to handle 6 byte unsigned integer field in lua dissector?

Certain exchange protocols have started sending their timestamp fields as a 6 byte unsigned integer. The field data contains nanoseconds since midnight. If I promote this value to a uint64 via:

local range = buffer(offset, 6)
local value = range:uint64()
local display = "Timestamp"..value

parent:add(fields.timestamp, range, value, display)

I get:

Lua Error: [...]:370: calling 'add' on bad self (string expected, got userdata)

Is there a way to use the internal field parsers to handle 6 bytes as an integer? Do I need to write a custom function for this data?

2019-01-07 20:17:16 +0000 received badge  Scholar (source)
2019-01-07 20:16:43 +0000 commented answer How to handle 6 byte unsigned integer field in lua dissector?

Thanks. My script example might already be right... hardest bug to find. Your example reminded me that parent:add is us

2019-01-07 20:11:58 +0000 commented answer How to handle 6 byte unsigned integer field in lua dissector?

Thanks. My script example might already be right. It looks like my error is in the other part of the code...ie in the

2019-01-07 19:00:42 +0000 commented question How to handle 6 byte unsigned integer field in lua dissector?

I was copying from memory since this source is on a branch on my home cpu. :: was because my fingers know c++. I updat

2019-01-07 18:59:02 +0000 edited question How to handle 6 byte unsigned integer field in lua dissector?

How to handle 6 byte unsigned integer field in lua dissector? Certain exchange protocols have started sending their time

2019-01-07 16:46:10 +0000 edited question How to handle 6 byte unsigned integer field in lua dissector?

How to handle 6 byte unsigned integer field in lua dissector? Certain exchange protocols have started sending their time

2019-01-07 16:45:39 +0000 commented question How to handle 6 byte unsigned integer field in lua dissector?

Thanks for taking a look, I added the original script that caused the error. Your suggestion was my original line of th

2019-01-07 16:43:49 +0000 edited question How to handle 6 byte unsigned integer field in lua dissector?

How to handle 6 byte unsigned integer field in lua dissector? Certain exchange protocols have started sending their time

2019-01-07 13:48:41 +0000 received badge  Editor (source)
2019-01-07 13:48:41 +0000 edited question How to handle 6 byte unsigned integer field in lua dissector?

How to handle 6 byte unsigned integer field in lua dissector? Certain exchange protocols have started sending their time

2019-01-07 05:20:32 +0000 commented question How to handle 6 byte unsigned integer field in lua dissector?

Note: this displays the correct value but converts to a string: local range = buffer(offset, 6) local value = tostring(

2019-01-07 05:20:08 +0000 commented question How to handle 6 byte unsigned integer field in lua dissector?

Note: this displays the correct value but converts to a string: local range = buffer(offset, 6) local value = tostrin

2019-01-07 04:56:59 +0000 asked a question How to handle 6 byte unsigned integer field in lua dissector?

How to handle 6 byte unsigned integer field in lua dissector? Certain exchange protocols have started sending their time