Re: Re: problem in protocol item tree header field display
Ulf Lamping <[email protected]>
| Newsgroups | gmane.network.ethereal.devel |
|---|---|
| Message-ID | <[email protected]> |
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