mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
64f4f0ac1e
lwip/netif struct has two places to store user's data
* netif->state (1 void*) but that might be occupied in special cases
* netif->client_dtat (n void*s) but that must be enabled in opts.h
This commit stores esp_netif_t* primarily in state, but if any special
netif is enabled in menuconfig (bridgeif, pppos), it uses netif->client_data.
This commit also fixes incorrect esp_netif that is attached to
IP_EVENT_GOT_IP6 event posted by pppos interfaces in:
|
||
---|---|---|
.. | ||
netif | ||
esp_netif_br_glue.c | ||
esp_netif_lwip_defaults.c | ||
esp_netif_lwip_internal.h | ||
esp_netif_lwip_ppp.c | ||
esp_netif_lwip_ppp.h | ||
esp_netif_lwip_slip.c | ||
esp_netif_lwip_slip.h | ||
esp_netif_lwip.c |