feat(esp_netif): Allows user to set route priority after netif creation

This commit is contained in:
Rocha Euripedes
2024-11-25 16:33:27 +08:00
parent 56349e6d65
commit ebde9ce715
2 changed files with 19 additions and 0 deletions

View File

@@ -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
*