Wireshark-bugs: [Wireshark-bugs] [Bug 5203] Lua: Must expose pinfo.private_data as ByteArray of
Date: Tue, 18 Oct 2011 10:53:40 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5203

Stig Bjørlykke <stig@xxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |stig@xxxxxxxxxxxxx
         Resolution|                            |FIXED
           Severity|Major                       |Enhancement

--- Comment #1 from Stig Bjørlykke <stig@xxxxxxxxxxxxx> 2011-10-18 10:53:40 PDT ---
(In reply to comment #0)
> Current Bug is tha wslua_pinfo.c exposes private_data as LIGHTUSERDATA. I think
> it is meaningless. Because that causes it can not be read by lua script.

It's impossible to convert a void pointer in C to a ByteArray, because we don't
know the length of the data.  The calling dissector can allocate any length for
this pointer.

I have implemented another solution in revision 39461 which uses a GHashTable
to store key/values which can be passed between dissectors written in both C
and Lua.  I think this is the closest we get to this request.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.