35d7797
diff -up mrtg-2.17.7/bin/mrtg.orig mrtg-2.17.7/bin/mrtg
35d7797
--- mrtg-2.17.7/bin/mrtg.orig	2018-08-08 13:09:59.682296406 +0200
35d7797
+++ mrtg-2.17.7/bin/mrtg	2018-08-08 13:11:01.089173582 +0200
35d7797
@@ -302,7 +302,7 @@ sub main {
bebe1c7
     if ($cfg{enableipv6} eq 'yes') {
bebe1c7
         if ( eval {local $SIG{__DIE__};require Socket; require Socket6; require IO::Socket::INET6;}) {
bebe1c7
             import Socket;
bebe1c7
-            import Socket6;
bebe1c7
+            Socket6->import(qw(inet_pton getaddrinfo));
bebe1c7
             debug('base', "IPv6 libraries found, IPv6 enabled.");
bebe1c7
         } else {
bebe1c7
             warn "$NOW: WARNING: IPv6 libraries not found, IPv6 disabled.\n";
35d7797
diff -up mrtg-2.17.7/lib/mrtg2/SNMP_Session.pm.orig mrtg-2.17.7/lib/mrtg2/SNMP_Session.pm
35d7797
--- mrtg-2.17.7/lib/mrtg2/SNMP_Session.pm.orig	2018-07-13 08:09:56.000000000 +0200
35d7797
+++ mrtg-2.17.7/lib/mrtg2/SNMP_Session.pm	2018-08-08 13:13:15.361988807 +0200
1b839fc
@@ -146,7 +146,7 @@ BEGIN {
1b839fc
 
1b839fc
     if (eval {local $SIG{__DIE__};require Socket6;} &&
1b839fc
        eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
35d7797
-       Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
3217ff8
+       Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
1b839fc
 	$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
1b839fc
 	$SNMP_Session::ipv6available = 1;
1b839fc
     }
1b839fc
@@ -601,7 +601,7 @@ use Carp;
1b839fc
 BEGIN {
1b839fc
     if($SNMP_Session::ipv6available) {
1b839fc
 	    import IO::Socket::INET6;
35d7797
-        Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
3217ff8
+        Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
1b839fc
     }
1b839fc
 }
1b839fc