diff options
author | Stef Walter <stef@memberwebs.com> | 2006-08-06 00:08:45 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-08-06 00:08:45 +0000 |
commit | 76e08b021fd334fa4f415c9765a559252c399499 (patch) | |
tree | 74964694d3a4d84c92e88f6fdf209eb93f66a65d /daemon/rrdbotd.h | |
parent | a2d9a66d8b56a629b44ad23eca6929680a75f042 (diff) |
Make sure that communities and/or versions are not inadventently mixed up.
Diffstat (limited to 'daemon/rrdbotd.h')
-rw-r--r-- | daemon/rrdbotd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/rrdbotd.h b/daemon/rrdbotd.h index 35b3912..70e09fa 100644 --- a/daemon/rrdbotd.h +++ b/daemon/rrdbotd.h @@ -94,7 +94,10 @@ rb_item; typedef struct _rb_host { - const char* name; + /* The hash key is version:hostname:community */ + char key[128]; + + const char* hostname; const char* community; int version; @@ -146,7 +149,7 @@ typedef struct _rb_state /* Quick lookups for responses */ hsh_t* poll_by_key; - hsh_t* host_by_name; + hsh_t* host_by_key; } rb_state; |