diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-28 23:39:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-28 23:39:58 +0000 |
commit | dd9f02255dbd39bc8cdc847512326a61a4ee0b8a (patch) | |
tree | 063afd843410bfca3c94399e204d559a7fbeff59 /epan/proto.c | |
parent | 4fb36a6b1d6f914e734424b7444192caba15827b (diff) | |
download | wireshark-dd9f02255dbd39bc8cdc847512326a61a4ee0b8a.tar.gz wireshark-dd9f02255dbd39bc8cdc847512326a61a4ee0b8a.tar.bz2 wireshark-dd9f02255dbd39bc8cdc847512326a61a4ee0b8a.zip |
Note in a comment that the display filter code has its own mechanism for
looking up filter fields by name.
svn path=/trunk/; revision=5281
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <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) |