Ethereal-dev: Re: [Ethereal-dev] Re: problem in protocol item tree header field display

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 20 May 2006 11:40:57 +0200
Ravi Kondamuru wrote:
Further investigation is showing me that the following are the values in hfinfo:
1. hfinfo->flags = 1, indicating that it is HIDDEN.
I have no where in my declarations set hf_ns_nicno to be HIDDEN. Is that the default setting or have I not set any flag elsewhere to make it visible?

Don't get confused by header_field_info vs. field_info. The header_field_info (hfinfo) doesn't contain a flags field. The field_info does, but it won't be FI_HIDDEN by default. You'll find the definitions at epan/proto.h.
2. hfinfo->ref_count = 0, making TRY_TO_FAKE_THIS_ITEM macro return without setting value in proto_tree_add_uint(...)
When is the ref_count incremented?

Don't know.

Regards, ULFL
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev