esp_idf_hal::sys

Function esp_netif_add_ip6_address

Source
pub unsafe extern "C" fn esp_netif_add_ip6_address(
    esp_netif: *mut esp_netif_obj,
    addr: esp_ip6_addr,
    preferred: bool,
) -> i32
Expand description

@brief Cause the TCP/IP stack to add an IPv6 address to the interface

@param[in] esp_netif Handle to esp-netif instance @param[in] addr The address to be added @param[in] preferred The preferred status of the address

@return - ESP_OK - ESP_ERR_ESP_NETIF_INVALID_PARAMS - ESP_ERR_ESP_NETIF_IP6_ADDR_FAILED - ESP_ERR_NO_MEM