mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Updated uid pools to use integer values instead of strings.
This commit is contained in:
parent
d46525dcca
commit
7bea71a2c2
24 changed files with 209 additions and 196 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue