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

Wireshark-dev: Re: [Wireshark-dev] How to append two tvb buffers?

Date: Fri, 17 Oct 2008 12:37:29 +0530
Hi Jaap,

Thanks for your advice.
I have tried doing the following and got an error while running wireshark.

 tvb1 = tvb_new_subset(tvb, offset, 1, 1);
        tvb2 = tvb_new_subset(tvb, offset, 1, 1);
tvb_composite_append(tvb1 , tvb2);

But  i got the following error " [Dissector bug, protocol ZZZ : tvbuff.c:524: failed assertion "tvb && !tvb->initialized"] " message.

Can you please suggest where i went wrong

thanks & regards,
Atdev.
________________________________

From: wireshark-dev-bounces@xxxxxxxxxxxxx on behalf of Jaap Keuter
Sent: Thu 10/16/2008 10:33 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How to append two tvb buffers?



Hi,

Have a look at the tvb_composite_xxx() functions for that.

Thanx,
Jaap

atdev.queries@xxxxxxxxx wrote:
> Hi All,
>
>
>
> I am developing a new plugin in which it contains the tvb buffer in the
> following format xx yy xx zz xx qw ....
>
> But I need not consider xx values and would like to have yy zz as one
> item in other buffer.
>
>
>
> For that I am thinking of taking yy in one subset and zz in another
> subset using tvb_new_subset().
>
>
>
> But I don't know how to append both the buffers in to third buffer as yy zz.
>
>
>
> Could any one please help me to append them or please suggest any other
> procedure to get it done as yy zz.
>
>
>
> Thanks in advance,
>
> Atdev.
>
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev



Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

<<winmail.dat>>