From 1369a4f67321aa5b38533e795db66923ff8d762f Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 10 Jun 2016 19:57:58 +0200 Subject: 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... --- include/nms/snmp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/nms/snmp.pm') 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 { -- cgit v1.2.3