22 lines
937 B
Diff
22 lines
937 B
Diff
|
diff -up mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm.socket6 mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm
|
||
|
--- mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm.socket6 2011-02-20 23:33:38.000000000 +0100
|
||
|
+++ mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm 2011-10-02 13:04:28.512019418 +0200
|
||
|
@@ -146,7 +146,7 @@ BEGIN {
|
||
|
|
||
|
if (eval {local $SIG{__DIE__};require Socket6;} &&
|
||
|
eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
|
||
|
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
|
||
|
+ Socket6->import(qw(inet_pton getaddrinfo));
|
||
|
$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
|
||
|
$SNMP_Session::ipv6available = 1;
|
||
|
}
|
||
|
@@ -601,7 +601,7 @@ use Carp;
|
||
|
BEGIN {
|
||
|
if($SNMP_Session::ipv6available) {
|
||
|
import IO::Socket::INET6;
|
||
|
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
|
||
|
+ Socket6->import(qw(inet_pton getaddrinfo));
|
||
|
}
|
||
|
}
|
||
|
|