-Have networks/dhcp ignore loopback network

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-07-07 15:22:59 +00:00
parent eb586d1586
commit e34156c3a6
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ sub process_request
my @ent = split /\s+/;
my $firstoctet = $ent[0];
$firstoctet =~ s/^(\d+)\..*/$1/;
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239))
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239) or $ent[0] eq "127.0.0.0")
{
next;
}

View File

@ -60,7 +60,7 @@ sub process_request
my @ent = split /\s+/, $_;
my $firstoctet = $ent[0];
$firstoctet =~ s/^(\d+)\..*/$1/;
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239))
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239) or $ent[0] eq "127.0.0.0")
{
next;
}