Skip to main content

krun_set_net_mac

Function krun_set_net_mac 

Source
pub unsafe extern "C" fn krun_set_net_mac(
    ctx_id: u32,
    c_mac: *mut u8,
) -> i32
Expand description

Sets the MAC address for the virtio-net device when using the passt backend.

Arguments: “ctx_id” - the configuration context ID. “mac” - MAC address as an array of 6 uint8_t entries.

Returns: Zero on success or a negative error number on failure.