Note in a comment that the display filter code has its own mechanism for
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Apr 2002 23:39:58 +0000 (23:39 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Apr 2002 23:39:58 +0000 (23:39 +0000)
looking up filter fields by name.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5281 f5534014-38df-0310-8fa8-9805f1628bb7

epan/proto.c

index 80fb1ad7a6dcd782939c54d2c99cd85798dc4ba9..35760079461d7e2ee3c8bbdd95ec8fac885d075b 100644 (file)
@@ -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 <gerald@ethereal.com>
@@ -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)