Ethereal-dev: Re: [Ethereal-dev] Re: increasing number of bytes printed from "proto_tree_add_

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Guy Harris" <gharris@xxxxxxxxx>
Date: Fri, 7 Apr 2006 14:46:51 -0700 (PDT)
Jasim Tariq wrote:
> Thats right. As long as I am doing any operation on tvb (the default
> tvbuff_t), Packet Bytes will contain the bytes of this default tvb only.
>
> If I create another tvbuff_t for my purposes, lets say ctvb, then how can
> I display the bytes of ctvb on the Packet Bytes pane along with the
bytes of
> tvb, or append ctvb to tvb right after tvb ends?

You can't.

If, however, the tvbuff you're constructing is constructed with
tvb_new_real_data() - for example, if you're decompressing or decrypting
data - you should be registering it as a "data source", so it gets a
notebook page in the Packet Bytes pane.  See, for example,
epan/dissectors/packet-icq.c for an example of code that does that.

> Is there another way I can append bytes to my default tvb just to view
> them on the Packet Bytes pane?

No.