Function esp_idf_svc::sys::esp_derive_local_mac
source · pub unsafe extern "C" fn esp_derive_local_mac(
local_mac: *mut u8,
universal_mac: *const u8,
) -> i32
Expand description
@brief Derive local MAC address from universal MAC address.
This function copies a universal MAC address and then sets the “locally administered” bit (bit 0x2) in the first octet, creating a locally administered MAC address.
If the universal MAC address argument is already a locally administered MAC address, then the first octet is XORed with 0x4 in order to create a different locally administered MAC address.
@param local_mac base MAC address, length: 6 bytes. length: 6 bytes for MAC-48 @param universal_mac Source universal MAC address, length: 6 bytes.
@return ESP_OK on success