mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
Update to 1.13;
Add a patch http://oss.oetiker.ch/mrtg-trac/changeset/330 to eliminate a warning regarding IPv6; PR: 154367 154411 Feature safe: yes Submitted by: Reviewed by: Approved by: Obtained from: MFC after: Security: Feature safe:
This commit is contained in:
parent
82c0311dd0
commit
1311f7ed58
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=268490
21
net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm
Normal file
21
net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- lib/SNMP_Session.pm.orig 2011-01-31 14:10:12.000000000 +0600
|
||||||
|
+++ lib/SNMP_Session.pm 2011-01-31 14:11:20.000000000 +0600
|
||||||
|
@@ -146,7 +146,7 @@
|
||||||
|
|
||||||
|
if (eval {local $SIG{__DIE__};require Socket6;} &&
|
||||||
|
eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
|
||||||
|
- import Socket6;
|
||||||
|
+ Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
|
||||||
|
$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
|
||||||
|
$SNMP_Session::ipv6available = 1;
|
||||||
|
}
|
||||||
|
@@ -601,7 +601,7 @@
|
||||||
|
BEGIN {
|
||||||
|
if($SNMP_Session::ipv6available) {
|
||||||
|
import IO::Socket::INET6;
|
||||||
|
- import Socket6;
|
||||||
|
+ Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user