Hi dev,
Here is my story: my C dissector stores some information in pinfo->private_data, then it calls my lua dissector. I also wrote a C dynamic library which can be called by lua dissector, so that lua dissector can extract information from pinfo->private_data. The whole process can be ilustrated by:
C dissector ---calls---> lua dissector
----loadlib---> C function extract data from pinfo->private_data
----return-data----> lua dissector
Unfortunately the definition of Pinfo in epan/wslua/wslua.h was changed from rev. 25844 to rev. 25845 [1]. Due to this change, my code make wireshark crash.
My question is: how can we prevent this kind of thing in the futhure? By adding a function (or macro) like this (?)
packet_info* wslua_pinfo(Pinfo pinfo)
{
return pinfo->ws_pinfo;
}
Thanks!
----
[1] See bug 2453:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2453