diff options
author | Robin Sonefors <robin.sonefors@op5.com> | 2013-01-29 12:18:32 (GMT) |
---|---|---|
committer | Robin Sonefors <robin.sonefors@op5.com> | 2013-01-29 14:30:02 (GMT) |
commit | d87395ec3d4bec777ab92fc74c8370877171259f (patch) | |
tree | f9ff43b14123b51232b6d747af10e6aedba34d2e /tap/tests/ok/ok-hash/Makefile.am | |
parent | f4bbd88a9f91bfbfbe590b3252043392e7248988 (diff) | |
download | monitoring-plugins-d87395ec3d4bec777ab92fc74c8370877171259f.tar.gz |
check_snmp: Dynamically grow all data structures
Before this patch, there was a constant, MAX_OIDS, that determined the
amount of slots most (but not all - see labels) array data structures
would have. It was set to 8.
Some users would like to use more than that, but rather than bumping the
constant, let's use the same type of logic we already use for labels -
grow the space 8 slots at a time. This will allow us to potentially
support an infinite amount of oids - or at least as many as the
packetsize on the SNMP server allows, which is usually significantly
smaller than infinity, yet often larger than 8.
Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Diffstat (limited to 'tap/tests/ok/ok-hash/Makefile.am')
0 files changed, 0 insertions, 0 deletions