Wireshark-dev: [Wireshark-dev] How to get backing tvb??
From: Alex Lindberg <alindber@xxxxxxxxx>
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