Wireshark-dev: Re: [Wireshark-dev] Add the next Tvb packet to current tvb before dissecting
From: wsgd <[email protected]>
Date: Wed, 12 Aug 2009 20:27:38 +0200
Hello,

The displayed error says that tvb_set_child_real_data_tvbuff returns void (nothing).
See epan/tvbuff.h
So you are trying : next_tvb=void


Other thing :
I do not understand why you are trying to do reassembly by yourself since this is the goal of tcp_dissect_pdus.


Olivier



Clifford Sibanda a écrit :
Good day

I would like to get some assistance if anyone out there can.

I am working a plugin dissector that handles data from an asynchronous source. The asynchronous source first sends a packet with just the message length of the next packet which contains the real data.
What i would love to do is to keep this packet with just the length of 
the next packet and append to it the next packet before I proceed with 
dissecting.
I have tried using the tcp_dissect_pdus and the longer reassembly 
method but I get this error using both methods:
error: void value not ignored as it ought to be

for this line

next_tvb=tvb_set_child_real_data_tvbuff(tvb,next_tvb);

I'm not sure what it is that I'm doing wrong

And if there is a simpler way of just adding the next tvb without going the reassemble route I would like to use that one
Thank you

Clifford Sibanda
Good day


------------------------------------------------------------------------

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe