Ethernet IPv6 tries
This commit is contained in:
@@ -15,10 +15,11 @@
|
|||||||
#include <esp_debug_helpers.h>
|
#include <esp_debug_helpers.h>
|
||||||
#include <dhcpserver/dhcpserver_options.h>
|
#include <dhcpserver/dhcpserver_options.h>
|
||||||
#include <lwip/dns.h>
|
#include <lwip/dns.h>
|
||||||
|
#include <esp_netif_net_stack.h>
|
||||||
#if LWIP_IPV6 && LWIP_IPV6_DHCP6_STATELESS
|
#if LWIP_IPV6 && LWIP_IPV6_DHCP6_STATELESS
|
||||||
#include <lwip/dhcp6.h>
|
#include <lwip/dhcp6.h>
|
||||||
#include <esp_netif_net_stack.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
#include <lwip/netif.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ETH_ENABLED
|
#ifdef CONFIG_ETH_ENABLED
|
||||||
#include <esp_eth.h>
|
#include <esp_eth.h>
|
||||||
@@ -1411,6 +1412,7 @@ void wifi_event_callback(const config &config, const WifiEvent &event)
|
|||||||
case WifiEventId::ETH_CONNECTED:
|
case WifiEventId::ETH_CONNECTED:
|
||||||
#ifdef CONFIG_ETH_ENABLED
|
#ifdef CONFIG_ETH_ENABLED
|
||||||
wifi_set_status_bits(ETH_CONNECTED_BIT);
|
wifi_set_status_bits(ETH_CONNECTED_BIT);
|
||||||
|
esp_netif_create_ip6_linklocal(esp_netifs[ESP_IF_ETH]);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case WifiEventId::ETH_DISCONNECTED:
|
case WifiEventId::ETH_DISCONNECTED:
|
||||||
|
Reference in New Issue
Block a user