Wireshark mailing list archives
Re: Appending 2 TVBs in Wireshark 1.8.2
From: Bill Meier <wmeier () newsguy com>
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 ___________________________________________________________________________ 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:
- Appending 2 TVBs in Wireshark 1.8.2 Zadik, Maayan (Oct 29)
- Re: Appending 2 TVBs in Wireshark 1.8.2 Bill Meier (Oct 29)
- Re: Appending 2 TVBs in Wireshark 1.8.2 Zadik, Maayan (Oct 30)
- Re: Appending 2 TVBs in Wireshark 1.8.2 Jeff Morriss (Oct 30)
- Re: Appending 2 TVBs in Wireshark 1.8.2 Zadik, Maayan (Oct 30)
- Re: Appending 2 TVBs in Wireshark 1.8.2 Bill Meier (Oct 29)