fix for IPv6 link local address subroutine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2bcc16b884
commit
1c68c2a98c
@ -261,12 +261,15 @@ sub linklocaladdr {
|
||||
}
|
||||
my ($m4, $m5) = ("ff","fe");
|
||||
|
||||
my $bit = (int $m1) & 2;
|
||||
if ($bit) {
|
||||
$m1 = $m1 - 2;
|
||||
} else {
|
||||
$m1 = $m1 + 2;
|
||||
}
|
||||
#my $bit = (int $m1) & 2;
|
||||
#if ($bit) {
|
||||
# $m1 = $m1 - 2;
|
||||
#} else {
|
||||
# $m1 = $m1 + 2;
|
||||
#}
|
||||
$m1 = hex($m1);
|
||||
$m1 = $m1 ^ 2;
|
||||
$m1 = sprintf("%x", $m1);
|
||||
|
||||
$m1 = $m1 . $m2;
|
||||
$m3 = $m3 . $m4;
|
||||
|
Loading…
Reference in New Issue
Block a user