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()".
