Re: Printing an array of bytes to the tree?

Jaap Keuter <[email protected]>
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
Hi,

Sure it can. Did you register the field?
What code is used to create the subtree?

Thanx,
Jaap

On Fri, 19 May 2006, Saad Nader wrote:

> I've tried using the following named field:
>
>
>
> ...
>
> &hf_my_hex_string,
>
> {
>
> "A Hex String",
>
>       "myproto.hexstr",
>
>       FT_BYTES,
>
>       BASE_HEX,
>
>       NULL,
>
>       0x0,
>
>       "",
>
>       HFILL
>
> }
>
> ...
>
>
>
> But printing to the subtree never showed anything when the dissector makes
> this call:
>
>
>
> if (tree)
>
> {
>
> proto_tree_add_item(myproto_tree, hf_my_hex_string, tvb, offset, 24, FALSE);
>
> }
>
>
>
> Is there anything that I'm missing or is it just not possible to print that
> many hex characters?
>
>
>
> Thanks,
> Saad
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.