Ethereal-dev: Re: [Ethereal-dev] Setting up searchable fields when one field depends on anothe

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: Sat, 11 Aug 2001 10:07:37 -0700
On Sat, Aug 11, 2001 at 11:39:45PM +0930, Richard Sharpe wrote:
> I am wanting to convert all the header fields to being searchable, but 
> the errcode field depends on the errcls.
> 
> At the moment, the errcode field uses a function to break it out.
> 
> What would be the easiest way to handle this?

I would be inclined to handle this either by

	1) treating both fields as a single field, storing both error
	   code and error class values, so you search on the combination

or

	2) having multiple different errcode fields, with the one that
	   goes into the protocol tree depending on the errcls field.