Wireshark mailing list archives

How to get backing tvb??


From: Alex Lindberg <alindber () yahoo com>
Date: Sun, 18 Mar 2012 12:51:11 -0700 (PDT)

I need to get the backing or parent tvbuff.  In the past, I have used

   tvbuff_t *new_buff;
   new_buff = tvb->tvbuffs.subset.tvb

This works in the 1.6 trunk stream.  Now however, in the 1.7 (mainline trunk) this throws a compiler error:

   dereferencing pointer to incomplete type.

I resolved this by adding

   #include <epan/tvbuff-int.h>.

Is there an easier (safer) way to do this?

Thanks as always.
Alex Llindberg
___________________________________________________________________________
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: