From: guy Date: Sun, 28 Apr 2002 23:39:58 +0000 (+0000) Subject: Note in a comment that the display filter code has its own mechanism for X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=2d1366380a0dc2785d2d924cea592b95aef94c67 Note in a comment that the display filter code has its own mechanism for looking up filter fields by name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5281 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/epan/proto.c b/epan/proto.c index 80fb1ad7a6..3576007946 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -1,7 +1,7 @@ /* proto.c * Routines for protocol tree * - * $Id: proto.c,v 1.65 2002/04/28 22:21:09 guy Exp $ + * $Id: proto.c,v 1.66 2002/04/28 23:39:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -364,7 +364,10 @@ proto_registrar_get_nth(int hfindex) } /* Finds a record in the hf_info_records array by name. - * XXX - have a hash table so this lookup can go faster? + * XXX - the display filter code maintains a balanced tree + * of filter names and hfinfo pointers; should that be moved + * up into here, so the display filter code could just use + * this routine? */ header_field_info* proto_registrar_get_byname(const char *field_name)