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

No struct support in wireshark 1.10.7’s lua interpreter?

0

I don't seem to be able to use Struct.pack and Struct.unpack in the lua interpreter for the latest OSX version of 1.10.7.

I got an "attempt to index global 'Struct' (a nil value)" error even though Wireshark appears to have Struct support at least in the documentation section and one of the check-in messages.

http://www.wireshark.org/docs/wsug_html_chunked/lua_module_Struct.html#lua_class_Struct

http://www.wireshark.org/lists/wireshark-commits/201402/msg00189.html

asked 11 May '14, 15:41

software%20engineer's gravatar image

software eng...
6114
accept rate: 0%

edited 11 May '14, 15:41


One Answer:

2

This commit was done in the development (master) branch and not in the stable (master-1.10) branch. You should use the Wireshark 1.11.3 release found on the website or a later development snapshot.

answered 11 May '14, 22:51

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

Thanks. It wasnt obvious from the commit link which version it went into.

(11 May '14, 23:14) software eng...

The API doc should say it's "Since 1.11.3" for Struct, as it does for the other new things... but does not do for Struct. I'll fix it when I get some free time this week.

(12 May '14, 09:09) Hadriel