esp-netif-ppp: support for posting GOT_IP event for IPv6

This commit is contained in:
David Cermak
2020-02-25 11:43:02 +01:00
committed by bot
parent afd6d6294e
commit eae8eaa55f
2 changed files with 52 additions and 19 deletions

View File

@@ -203,6 +203,11 @@ static void on_ip_event(void *arg, esp_event_base_t event_base,
ESP_LOGI(TAG, "GOT ip event!!!");
} else if (event_id == IP_EVENT_PPP_LOST_IP) {
ESP_LOGI(TAG, "Modem Disconnect from PPP Server");
} else if (event_id == IP_EVENT_GOT_IP6) {
ESP_LOGI(TAG, "GOT IPv6 event!");
ip_event_got_ip6_t *event = (ip_event_got_ip6_t *)event_data;
ESP_LOGI(TAG, "Got IPv6 address " IPV6STR, IPV62STR(event->ip6_info.ip));
}
}