Ask Your Question

wwtegel's profile - activity

2021-04-05 17:27:29 +0000 commented answer Comparing 2 UInt64s in Lua for Null Value

This works: -- Display: Cross Id display.cross_id = function(value) -- Check if field has value if value == UInt6

2021-04-05 17:27:17 +0000 commented answer Comparing 2 UInt64s in Lua for Null Value

This works: -- Display: Cross Id display.cross_id = function(value) -- Check if field has value if value == UInt6

2021-04-05 15:33:43 +0000 edited question Comparing 2 UInt64s in Lua for Null Value

Comparing 2 UInt64 in Lua I am trying to print "No Value" on certain 64bit nullable sentinel values for SBE protocols.

2021-04-05 15:31:12 +0000 commented answer Comparing 2 UInt64s in Lua for Null Value

From reading the guide I believe the code is correct. This branch should be taken: if value == 18446744073709551615

2021-04-04 01:38:40 +0000 asked a question Comparing 2 UInt64s in Lua for Null Value

Comparing 2 UInt64 in Lua I am trying to print "No Value" on certain 64bit nullable sentinel values for SBE protocols.

2020-10-16 15:08:50 +0000 received badge  Famous Question (source)
2020-10-16 15:08:50 +0000 received badge  Notable Question (source)
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