aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-06-10 19:57:58 +0200
committerKristian Lyngstol <kly@kly.no>2016-06-10 19:57:58 +0200
commit1369a4f67321aa5b38533e795db66923ff8d762f (patch)
tree145116923d9f487a6978cc6dd23fbb1cf57d0888 /include
parentd30d34d445eff413d24ac5f48f849f97d4052f93 (diff)
lolwhat + snmp: Performance tweaks and better collision detection
Truns out people suck at making sensible network hardware. Lots of replies on IPs that the devices didn't know they had. I discard these now, but should keep some sort of map. The reason this is a problem is that we later "Deduplicate" results by comparing IP lists - but that doesn't work when the devices don't know about all of the IPs they listen to. I might have to revisit this since the IPs are obviously valid...
Diffstat (limited to 'include')
-rw-r--r--include/nms/snmp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nms/snmp.pm b/include/nms/snmp.pm
index 64f2e06..45ab6c6 100644
--- a/include/nms/snmp.pm
+++ b/include/nms/snmp.pm
@@ -33,7 +33,7 @@ sub snmp_open_session {
$async //= 0;
- my %options = (UseEnums => 1);
+ my %options = (UseEnums => 1, Retries => 0);
if ($ip =~ /:/) {
$options{'DestHost'} = "udp6:$ip";
} else {