This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

absolute_time field in Lua dissector

0

The function ProtoField.absolute_time is documented (11.10.6.14), but may be broken in some way. At least, when I try to call it, I get an error dialogue containing the message "attempt to call field '?' (a nil value)", and pointing to the line with the absolute_time call, when starting wireshark.

I am using version 1.6.7.

Is this deliberate, or a bug?

asked 02 May '12, 04:11

Brian%20Raven's gravatar image

Brian Raven
6112
accept rate: 0%


One Answer:

1

That function was added after 1.6 (that is, in the current trunk which is 1.7). The documentation you're looking at is probably the online WSUG which is, as per the front page, for 1.7 (not 1.6).

You might want to use the WSUG that came with your version of Wireshark (if it did, in fact, come with one).

answered 02 May '12, 09:14

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

That explains it. I missed the "For Wireshark 1.7". I look forward to being able to add timestamps to my dissector, when 1.7 becomes stable.

Many thanks for the prompt response.

(02 May '12, 09:43) Brian Raven

As this is a Q&A site, please don't forget to Accept the answer if it answered your question--see the FAQ.

Anyway, you're welcome!

(02 May '12, 09:51) JeffMorriss ♦