From a973e538c4d3744004c302ad894182e5d72da8a2 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Fri, 25 Sep 2015 19:03:47 +0200 Subject: [PATCH] Added complete list of IPv6-based SNMP transport specifiers in snmpTransportToAddressFamily() --- includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index cf23d07b8..30aa01e0e 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1253,7 +1253,9 @@ function snmpTransportToAddressFamily($transport) { $transport = 'udp'; } - if ($transport == 'udp6' || $transport == 'tcp6') { + $ipv6_snmp_transport_specifiers = array('udp6', 'udpv6', 'udpipv6', 'tcp6', 'tcpv6', 'tcpipv6'); + + if (in_array($transport, $ipv6_snmp_transport_specifiers)) { return AF_INET6; } else {