-Fix bitwise operator error in previous checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7675 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8ba1a33254
commit
195dbf863c
@ -234,7 +234,7 @@ sub genMac { #Generates a mac address for a node, does NOT assure uniqueness, ca
|
||||
#First thought was to go to 13 bits, but by fixing our generated mac addresses to always start with the same byte and still be unique
|
||||
#this induces libvirt to do unique TAP mac addresses
|
||||
my $leading = int(rand(0xff));
|
||||
$leading = $leading & 0x4200;
|
||||
$leading = $leading | 0x4200;
|
||||
#If this nodename is a resolvable name, we'll use that for the other 32 bits
|
||||
my $low32;
|
||||
my $n;
|
||||
|
Loading…
Reference in New Issue
Block a user