Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2935] New simulcrypt protocol dissector

Date: Tue, 7 Oct 2008 14:00:55 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2935





--- Comment #10 from Bill Meier <wmeier@xxxxxxxxxxx>  2008-10-07 14:00:55 PDT ---
Re: building param_value

After poking around a bit I found that the following can be used:

   gchar *param_value;
   ...
   param_value = tvb_bytes_to_str_punct(tvb, offset, plen, ' ');
   offset += plen;
   ....

   (The ptr returned by tvb_bytes_to_str_punct points to a temporary buffer
    whose space is freed before the next frame is dissected).

The result is similar to that from the current code except that the string
created will only show the first 16 bytes (with a ... if plen > 16 bytes).

This actually seems a bit nicer since to me since parameters with long values
(eg: ECM_DATAGRAM) won't run off the right side of the window. However, YMMV.


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