Wireshark-dev: Re: [Wireshark-dev] Appending 2 TVBs in Wireshark 1.8.2

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Mon, 29 Oct 2012 12:06:41 -0400
On 10/28/2012 12:20 PM, Zadik, Maayan wrote:
Hi all,

How do I create a single TVB from several data chunks?

Is there a way to append two TVBs?
I know the composite doesn't work. I tried it.


Regards,
Maayan




Well: you can create your own tvb using tvb_new_real_data() pointing to a buffer you've created containing the data you've copied from the two tvb's.

That being said, the composite TVB code should work. (I fixed the code some time ago and the code is part 1.8).

(I think composite TVbs are even being used someplace in 1.80).

What problems did you have using a composite TVB ?

Providing the essentials of code you used would help us to see what's happening.

Also, see epan/tvbtest.c for an example of code which creates composite tvb's.

(Ignore the comment about "Composite tvbuffs don't work at the moment...". AFAIK composite TVBs should work. I apparently forgot to remove the comment when I did the work a while back).

Bill