From badd067c44a50a427af05a677c7d69db057ba2e0 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 10 May 2010 08:19:54 +0000 Subject: [PATCH] ipv6 fix, replace the Socket library calls with NetworkUtils subroutines git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPscan.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/FSPscan.pm b/perl-xCAT/xCAT/FSPscan.pm index 88ededbd9..90d40266d 100644 --- a/perl-xCAT/xCAT/FSPscan.pm +++ b/perl-xCAT/xCAT/FSPscan.pm @@ -11,6 +11,7 @@ use xCAT::PPCdb; use xCAT::PPCscan; use xCAT::GlobalDef; use xCAT::Usage; +use xCAT::NetworkUtils; use Data::Dumper; ############################################## @@ -49,7 +50,7 @@ sub getshorthost { my $ip = shift; - my $host = gethostbyaddr( inet_aton($ip), AF_INET ); + my $host = xCAT::NetworkUtils->gethostname($ip); if ( $host and !$! ) { ############################## # Get short-hostname