【发布时间】:2016-03-18 13:12:57
【问题描述】:
我在使用 perl 包 5.10 时遇到错误。
“inet_pton 不是有效的 Socket 宏”
if (Socket::inet_pton (AF_INET6,$self->{'ip'}) )
{
$log->print("we hit here and ip=$self->{'ip'}");
$self->{'session'} = Net::SNMP->session(-hostname => $self->{'ip'},
-community => $self->{'community'},
-port => $self->{'port'},
-version => 'snmpv2c');
}
你能告诉我根本原因吗?
【问题讨论】:
-
@Martin - 不,这是 Linux 机器