On Fri, 31 October 2008 11:35:14 +0100, Johannes Berg wrote:
It did?
Variable as in one implementation for several trees with different
sizes, yes. Variable as in one tree with differently sized keys, no.
With the existing code, 48bit keys would need to be expressed as an
array of longs, thereby growing to 64bit. Alternatively one could
replace the longset/longcmp/longcpy with memset/memcmp/memcpy.
MAC address wouldn't be a problem. For BSSID+SSID one could just keep
the hashing and use the btree as an 'implementation detail' of the
'hashtable'. Beware that I don't allow two identical keys. The
implications of that make my toenails curl up.
Indeed.
Jörn
--
Joern's library part 7:
http://www.usenix.org/publications/library/proceedings/neworl/full_papers/mckusick.a
--