Ethereal-dev: RE: [Ethereal-dev] COL_PROTOCOL problem

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

From: Jeff Foster <jfoste@xxxxxxxxxxxx>
Date: Mon, 19 Feb 2001 15:12:55 -0600
From: Martin Thomas [mailto:martin_a_thomas@xxxxxxxxx]
Sent: Monday, February 19, 2001 3:11 PM

> Like this?
> 
>   pinfo->current_proto = "RFC1006";
>   if ( check_col( pinfo->fd, COL_PROTOCOL ) ) {
>     col_set_str( pinfo->fd, COL_PROTOCOL, "RFC1006" );
> 
> I'll take out the check_col and try it again..

No.  You want the column check.

What I mean is something like this..

   if ( tree) {
	   pinfo->current_proto = "RFC1006";
	   if ( check_col( pinfo->fd, COL_PROTOCOL ) ) {
	     col_set_str( pinfo->fd, COL_PROTOCOL, "RFC1006" );

In that case you will see your problem.

Jeff Foster
jfoste@xxxxxxxxxxxx