From 195dbf863cbc07e2d39afa76b6dbc3da4673c22e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 27 Sep 2010 19:04:38 +0000 Subject: [PATCH] -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 --- perl-xCAT/xCAT/VMCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/VMCommon.pm b/perl-xCAT/xCAT/VMCommon.pm index 287b544e6..a6b626240 100644 --- a/perl-xCAT/xCAT/VMCommon.pm +++ b/perl-xCAT/xCAT/VMCommon.pm @@ -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;