Ethereal-dev: Re: [Ethereal-dev] trouble with afs and cinfo

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 8 Apr 2003 18:14:26 -0700
On Tue, Apr 08, 2003 at 05:45:19PM -0700, Jaime Fournier wrote:
> I have been trying to get the afs
> code to print more info on colinfo.
> Using the -z options for all the vars that I want is
> not real feasible with so many vars. I have even
> modified the packet-afs.c to pass
> pinfo to all subdisectors.
> However this does not seem to work.

What doesn't work?  Passing pinfo is straightforward, so that presumably
works, and there's something else, e.g. some call to "col_add_str()" or
"col_append_fstr()" or something such as that, that's not working.

If so, what are the calls you're making in the subdissectors?  They
should be something like

	if (check_col(pinfo->cinfo, COL_INFO)) {
		col_append_fstr(pinfo->cinfo, COL_INFO, ", Foo %s",
		    op_string);
	}

Note that "col_add_str()" and "col_add_fstr()" will *overwrite* what
"dissect_afs()" puts into the column, so, unless you *want* to trash the
operation name, etc., you need to use "col_append_str()" or
"col_append_fstr()", to *append* to what "dissect_afs()" put into the
column.