Wireshark-commits: [Wireshark-commits] rev 39461: /trunk/epan/ /trunk/epan/: packet_info.h /trunk/e

Date: Tue, 18 Oct 2011 17:46:00 GMT
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