From c9a613b258dabd2f068104c33d8a9f934d51c21e Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 21 Mar 2012 02:52:26 +0000 Subject: [PATCH] fix for the issue xcatd restart failed on SN if there is IPv6 network entry in xcat networks table. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index eff29cd29..974bb217d 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -2475,6 +2475,8 @@ sub my_ip_facing $peer = shift; } return my_ip_facing_aix( $peer) if ( $^O eq 'aix'); + my $peernumber = inet_aton($peer); #TODO: IPv6 support + unless ($peernumber) { return undef; } my $noden = unpack("N", inet_aton($peer)); my @nets = split /\n/, `/sbin/ip addr`; foreach (@nets)