util/nvmutil: only mask random unicast/local macs
Without this change, arbitrary MAC addresses will always be masked. This change restores the intended behaviour.fsdg20230625
parent
fea3e51ccd
commit
ab2cfb8639
|
@ -183,8 +183,8 @@ cmd_setmac(const char *strMac)
|
|||
return;
|
||||
goto invalid_mac_address;
|
||||
} else if ((byte == 0) && (nib == 1)) {
|
||||
val8 &= 0xE;
|
||||
val8 |= 2;
|
||||
if (strMac[o + nib] == '?')
|
||||
val8 = (val8 & 0xE) | 2;
|
||||
}
|
||||
|
||||
val16 = val8;
|
||||
|
|
Loading…
Reference in New Issue