Ethereal-dev: Re: [Ethereal-dev] Patch for packet-kerberos.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 4 Feb 2004 22:32:51 -0800
On Wed, Feb 04, 2004 at 08:01:52PM -0800, jaime.fournier@xxxxxxxx wrote:
> This is a really simple hack I made onto the kerberos dissector
> in order to be able to print out values that did not
> seem available via the usual -z "proto,colinfo,var,var"
> method.
> 
> I would like to know if there is a better way to do this
> in which we can have real vars that are usable on col_info.

Yes, there's a better way - have real vars that are usable in col_info.
:-)

I.e., instead of using "proto_tree_add_text()" to add the items to the
protocol tree, create named fields for the items and use the appropriate
"proto_tree_add" routine to add them to the tree as named items.