mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/netif_ppp_ip6_autoconfig_v5.0' into 'release/v5.0'
fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs (v5.0) See merge request espressif/esp-idf!32181
This commit is contained in:
commit
a783022fb2
@ -184,7 +184,7 @@ static void on_ppp_notify_phase(ppp_pcb *pcb, u8_t phase, void *ctx)
|
|||||||
#endif // PPP_NOTIFY_PHASE
|
#endif // PPP_NOTIFY_PHASE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief PPP low level output callback used to transmit data using standard esp-netif interafce
|
* @brief PPP low level output callback used to transmit data using standard esp-netif interface
|
||||||
*
|
*
|
||||||
* @param pcb PPP control block
|
* @param pcb PPP control block
|
||||||
* @param data Buffer to write to serial port
|
* @param data Buffer to write to serial port
|
||||||
@ -260,6 +260,10 @@ esp_err_t esp_netif_start_ppp(esp_netif_t *esp_netif)
|
|||||||
lwip_peer2peer_ctx_t *ppp_ctx = (lwip_peer2peer_ctx_t *)netif_related;
|
lwip_peer2peer_ctx_t *ppp_ctx = (lwip_peer2peer_ctx_t *)netif_related;
|
||||||
assert(ppp_ctx->base.netif_type == PPP_LWIP_NETIF);
|
assert(ppp_ctx->base.netif_type == PPP_LWIP_NETIF);
|
||||||
|
|
||||||
|
#if ESP_IPV6_AUTOCONFIG
|
||||||
|
ppp_ctx->ppp->netif->ip6_autoconfig_enabled = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
ESP_LOGD(TAG, "%s: Starting PPP connection: %p", __func__, ppp_ctx->ppp);
|
ESP_LOGD(TAG, "%s: Starting PPP connection: %p", __func__, ppp_ctx->ppp);
|
||||||
esp_err_t err = pppapi_connect(ppp_ctx->ppp, 0);
|
esp_err_t err = pppapi_connect(ppp_ctx->ppp, 0);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user