Wireshark mailing list archives

Re: RFC: sorted value_string + bsearch


From: Jakub Zawadzki <darkjames () darkjames ath cx>
Date: Mon, 26 Apr 2010 21:13:54 +0200

On Fri, Apr 23, 2010 at 11:32:16PM +0200, Anders Broman wrote:
like a full table starting at a number ( like 500 - 1000 ->value  match index minus 
offset).

Uhm, sounds complicated :)

Maybe we can initialize match_type in proto_register_field_init()
so developer don't need to care if it's sorted or no...

We can do it also during first use of match_strval_fast() (which might be
better option)

Attaching patch, btw. I changed _fast to _ext.

Attachment: value-string-ext.patch
Description:

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: