910772e41c
some hostname lookups.
22 lines
771 B
Plaintext
22 lines
771 B
Plaintext
$OpenBSD: patch-lib_SNMP_Session_pm,v 1.2 2010/03/20 23:05:17 sthen Exp $
|
|
--- lib/SNMP_Session.pm.orig Fri Nov 21 05:25:17 2008
|
|
+++ lib/SNMP_Session.pm Tue Mar 16 16:14:22 2010
|
|
@@ -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");}) {
|
|
- 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;
|
|
}
|
|
@@ -605,7 +605,7 @@ use Carp;
|
|
BEGIN {
|
|
if($SNMP_Session::ipv6available) {
|
|
import IO::Socket::INET6;
|
|
- import Socket6;
|
|
+ Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
|
|
}
|
|
}
|
|
|