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:02:52 -0600
From: Martin Thomas [mailto:martin_a_thomas@xxxxxxxxx]
Sent: Monday, February 19, 2001 2:51 PM

> I am trying to figure out a problem I have with the
> COL_PROTOCOL field.. I expected that the last
> dissector
> to fill in this field using col_set_str would override
> all previous dissectors but that is not what I am
> seeing.

> The background is this: I have rewritten the tpkt
> dissector from Andreas Sikkema (and called it RFC1006)
> so that it stands alone from q931. So far, so good.
> Then I added COTP as a sub-dissector. This works..
> (packets are dissected) but the COL_PROTO shows
> RFC1006.. unless I put that as a filter term, in which
> case, the protocol field changes to COTP.


Perhaps you have a proto_tree value test before the 
col_set_str call. During the file load the tree value
will be null unless a filter is set; so the col_set_str
function isn't being called.


Jeff Foster
jfoste@xxxxxxxxxxxx