Ethereal-dev: Re: [Ethereal-dev] Registering filter fields during dissection time

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: Tue, 5 Jul 2005 17:49:19 -0700 (PDT)
Senthil Sundaram said:

> i.e proto_register_field_array() - can this be called from the dissection
> routines? Reason being, I dont know all the fields during the protocol
> registration time. I know most of the fields for my protocol during
> dissection time only. The payload for my protocol is in the form of
> type-length-value form, so the fields are discovered during dissection.

There are plenty of dissectors that support type/length/value payloads
that register their fields at protocol registration time.  They register
all the type values the dissector knows about.

What's different about your protocol that the set of type values cannot be
discovered until dissection time?