mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-31 14:22:14 +00:00
feat(esp_netif): Allows user to set route priority after netif creation
This commit is contained in:
@@ -1059,6 +1059,16 @@ const char *esp_netif_get_desc(esp_netif_t *esp_netif);
|
||||
*/
|
||||
int esp_netif_get_route_prio(esp_netif_t *esp_netif);
|
||||
|
||||
/**
|
||||
* @brief Configures routing priority
|
||||
*
|
||||
* @param[in] esp_netif Handle to esp-netif instance
|
||||
* @param[in] route_prio Required route priority for esp-netif instance
|
||||
*
|
||||
* @return Integer representing the instance's route-prio, or -1 if invalid parameters
|
||||
*/
|
||||
int esp_netif_set_route_prio(esp_netif_t *esp_netif, int route_prio);
|
||||
|
||||
/**
|
||||
* @brief Returns configured event for this esp-netif instance and supplied event type
|
||||
*
|
||||
|
Reference in New Issue
Block a user