Function esp_idf_svc::hal::sys::esp_netif_get_netif_impl_name
source ยท pub unsafe extern "C" fn esp_netif_get_netif_impl_name(
esp_netif: *mut esp_netif_obj,
name: *mut i8,
) -> i32
Expand description
@brief Get net interface name from network stack implementation
@note This name could be used in setsockopt()
to bind socket with appropriate interface
@param[in] esp_netif Handle to esp-netif instance @param[out] name Interface name as specified in underlying TCP/IP stack. Note that the actual name will be copied to the specified buffer, which must be allocated to hold maximum interface name size (6 characters for lwIP)
@return - ESP_OK - ESP_ERR_ESP_NETIF_INVALID_PARAMS