Jeff Morriss <jeff.morriss.ws@...> writes:
> On 08/18/2011 12:41 PM, Mrunal Upadhyay wrote:
> > Dear All,
> >
> > Is there a way to store a string in a temporary tvb buffer and then in
> > the dissection logic use this tvb buffer in the in order to read this
> > temporary string using function proto_tree_add_item and assign it to one
> > of the filter fields.
>
> Sure, use tvb_new_real_data() to create a TVB which points to some
> memory. Do be aware that the memory has to stick around for a while so
> you may also need to use tvb_set_free_cb() so you can know when to free it.
I don't know, but my guess is that you probably don't really want to do that.
Try looking at the proto_tree_add_string*() functions instead.