fix for IPv6, my_nets, do not return IPv6 networks on Linux for now

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-06-03 01:35:19 +00:00
parent 87a3e305a3
commit 896aa23691

View File

@ -2218,10 +2218,6 @@ sub my_nets
if (!$v6net)
{
my $curmask = 2**$maskbits - 1 << (32 - $maskbits);
if (!$curnet)
{
next;
}
my $nown = unpack("N", inet_aton($curnet));
$nown = $nown & $curmask;
my $textnet=inet_ntoa(pack("N",$nown));