Fix 'undefined subroutine &SNMP_Session::inet_ntop called at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 549.' error
This commit is contained in:
parent
bebe1c7cec
commit
3217ff8135
@ -18,7 +18,7 @@ diff -up mrtg-2.17.3/lib/mrtg2/SNMP_Session.pm.orig mrtg-2.17.3/lib/mrtg2/SNMP_S
|
|||||||
if (eval {local $SIG{__DIE__};require Socket6;} &&
|
if (eval {local $SIG{__DIE__};require Socket6;} &&
|
||||||
eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
|
eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
|
||||||
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
|
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
|
||||||
+ Socket6->import(qw(inet_pton getaddrinfo));
|
+ Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
|
||||||
$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
|
$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
|
||||||
$SNMP_Session::ipv6available = 1;
|
$SNMP_Session::ipv6available = 1;
|
||||||
}
|
}
|
||||||
@ -27,7 +27,7 @@ diff -up mrtg-2.17.3/lib/mrtg2/SNMP_Session.pm.orig mrtg-2.17.3/lib/mrtg2/SNMP_S
|
|||||||
if($SNMP_Session::ipv6available) {
|
if($SNMP_Session::ipv6available) {
|
||||||
import IO::Socket::INET6;
|
import IO::Socket::INET6;
|
||||||
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
|
- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
|
||||||
+ Socket6->import(qw(inet_pton getaddrinfo));
|
+ Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Summary: Multi Router Traffic Grapher
|
Summary: Multi Router Traffic Grapher
|
||||||
Name: mrtg
|
Name: mrtg
|
||||||
Version: 2.17.3
|
Version: 2.17.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://oss.oetiker.ch/mrtg/
|
URL: http://oss.oetiker.ch/mrtg/
|
||||||
Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
|
Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
|
||||||
Source1: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5
|
Source1: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5
|
||||||
@ -136,6 +136,10 @@ fi
|
|||||||
%{_unitdir}/mrtg.timer
|
%{_unitdir}/mrtg.timer
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 09 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.17.3-2
|
||||||
|
- Fix 'undefined subroutine &SNMP_Session::inet_ntop called at
|
||||||
|
/usr/bin/../lib64/mrtg2/SNMP_Session.pm line 549.' error
|
||||||
|
|
||||||
* Wed Dec 07 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.17.3-1
|
* Wed Dec 07 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.17.3-1
|
||||||
- Update to mrtg-2.17.3
|
- Update to mrtg-2.17.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user