Updated uid pools to use integer values instead of strings.

This commit is contained in:
Gilbert Clark gc355804@ohio.edu 2011-08-15 15:47:39 -07:00
parent d46525dcca
commit 7bea71a2c2
24 changed files with 209 additions and 196 deletions

View file

@ -226,10 +226,10 @@ extern int time_compare(struct timeval* tv_a, struct timeval* tv_b);
// Returns an integer that's very likely to be unique, even across Bro
// instances.
#define BRO_DEFAULT_UID_POOL "bro"
#define BRO_SCRIPT_UID_POOL "bro script"
#define BRO_DEFAULT_UID_POOL 1
#define BRO_SCRIPT_UID_POOL 2
extern uint64 calculate_unique_id();
extern uint64 calculate_unique_id(const std::string& pool);
extern uint64 calculate_unique_id(const size_t pool);
// For now, don't use hash_maps - they're not fully portable.
#if 0