Ethereal-dev: Re: [Ethereal-dev] referencing specific tcp protocol data

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 18 Apr 2002 13:20:25 -0700
On Thu, Apr 18, 2002 at 04:21:03PM +0100, Phil Williams wrote:
> Sorry about the wait, I completely forgot. Anyway, below is a routine
> when added to epan/proto.c (and the prototype in epan/proto.h) will do a
> name lookup, given a pointer to a string, it will return a
> header_field_info pointer if the protocol database contains that string,
> and a null pointer if not.  It looks up on the unique abbreviations
> registered, e.g. "ip" for IP packets, "ip.len" for the ip packet length
> etc.

Checked in - but with the name "proto_registrar_get_byname()", by
analogy to "proto_registrar_get_nth()".