Wireshark mailing list archives
Re: query regarding field registration of unicode string
From: ajay seshadri <sesh_ajay () yahoo com>
Date: Mon, 26 Jul 2010 11:18:57 -0700 (PDT)
Hi, Can you please tell me the arguments of the g_free() function, to be used along with tvb_fake_unicode()? I couldn't find it in the developer document. Also, is it supposed to be called at the end of the dissector? Thanks, Ajay ________________________________ From: Jaap Keuter <jaap.keuter () xs4all nl> To: Developer support list for Wireshark <wireshark-dev () wireshark org> Sent: Tue, July 13, 2010 4:51:20 PM Subject: Re: [Wireshark-dev] query regarding field registration of unicode string Hi, There's no direct support for Unicode strings in Wireshark. What's been done, by the SMB dissector for instance, is that the Unicode string is extracted from the TVB and then converted to an ASCII string before being added to the protocol tree using proto_tree_add_string(). The TVB module provides you with some helper functions: tvb_*fake_unicode(). Thanks, Jaap On Tue, 13 Jul 2010 00:10:45 -0700 (PDT), ajay seshadri <sesh_ajay () yahoo com> wrote: Hello,
I was going through the Wireshark Developer's guide to understand the implementation of a dissector. I had a doubt regarding the field registration of unicode string. Is there any specific value for unicode string, or FT_NONE is to be used while setting up a list of header fields using the array - hf[ ]? Thanks and Best Regards, Ajay Seshadri
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- query regarding field registration of unicode string ajay seshadri (Jul 13)
- Re: query regarding field registration of unicode string Jaap Keuter (Jul 13)
- Re: query regarding field registration of unicode string ajay seshadri (Jul 13)
- Re: query regarding field registration of unicode string ajay seshadri (Jul 26)
- Re: query regarding field registration of unicode string Jaap Keuter (Jul 13)