http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=39461
User: stig
Date: 2011/10/18 10:46 AM
Log:
Added a private hash table to transport string values between dissectors.
This works between C and Lua.
In C the pinfo.private_table pointer must be initialized using
g_hash_table_new (g_str_hash, g_str_equal);
In Lua the values are available using pinfo.private.<key>, and the
table is created automatically on first usage. It's possible to use
this datatypes: nil, boolean, number and string, but every value
is converted to string so numbers must be converted using tonumber()
on usage. Boolean is either nil or an empty string.
Directory: /trunk/epan/
Changes Path Action
+1 -0 packet_info.h Modified
Directory: /trunk/epan/wslua/
Changes Path Action
+1 -0 init_wslua.c Modified
+8 -0 wslua.h Modified
+152 -0 wslua_pinfo.c Modified