Ethereal-dev: Re: [Ethereal-dev] COL_INFO question.

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: Wed, 12 Jun 2002 22:19:54 -0700
On Wed, Jun 12, 2002 at 01:13:47PM -0700, Jaime Fournier wrote:
> I just can not figure out if within the
> epm_dissect_ept_lookup_rqst() is where I run the
> tvb_get_xxx before I do the 
> offset = dissect_ndr_uint64 (
> tvb,offset,pinfo,tree,drep, hp_epm_inquiry_type,NULL)

It's "dissect_ndr_uint32".

In that particular case, if you declare a variable

	guint32 inquiry_type;

in that routine, and call

	offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                 hf_epm_inquiry_type, &inquiry_type);

then "dissect_ndr_uint32()" will return the value of that field in the
"inquiry_type" variable - you wouldn't have to fetch it yourself with a
"tvb_get_xxx" routine.

So, after that, you'd use a "col_add_fstr()" call to display the value
in the Info column.