mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
IPv6 on esp8266-nonos-sdk and arduino (#5136)
This commit is contained in:
@ -27,9 +27,18 @@
|
||||
|
||||
#include "os_type.h"
|
||||
#ifdef LWIP_OPEN_SRC
|
||||
|
||||
#include "lwip/init.h"
|
||||
#if LWIP_VERSION_MAJOR == 1
|
||||
#define ipv4_addr ip_addr
|
||||
#endif
|
||||
#include "lwip/ip_addr.h"
|
||||
#if LWIP_VERSION_MAJOR != 1
|
||||
typedef struct ip4_addr ipv4_addr_t;
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include "ip_addr.h"
|
||||
#error LWIP_OPEN_SRC must be defined
|
||||
#endif
|
||||
|
||||
#include "queue.h"
|
||||
@ -356,13 +365,13 @@ struct station_info {
|
||||
STAILQ_ENTRY(station_info) next;
|
||||
|
||||
uint8 bssid[6];
|
||||
struct ip_addr ip;
|
||||
struct ipv4_addr ip;
|
||||
};
|
||||
|
||||
struct dhcps_lease {
|
||||
bool enable;
|
||||
struct ip_addr start_ip;
|
||||
struct ip_addr end_ip;
|
||||
struct ipv4_addr start_ip;
|
||||
struct ipv4_addr end_ip;
|
||||
};
|
||||
|
||||
enum dhcps_offer_option{
|
||||
@ -519,9 +528,9 @@ typedef struct {
|
||||
} Event_StaMode_AuthMode_Change_t;
|
||||
|
||||
typedef struct {
|
||||
struct ip_addr ip;
|
||||
struct ip_addr mask;
|
||||
struct ip_addr gw;
|
||||
struct ipv4_addr ip;
|
||||
struct ipv4_addr mask;
|
||||
struct ipv4_addr gw;
|
||||
} Event_StaMode_Got_IP_t;
|
||||
|
||||
typedef struct {
|
||||
@ -531,7 +540,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
uint8 mac[6];
|
||||
struct ip_addr ip;
|
||||
struct ipv4_addr ip;
|
||||
uint8 aid;
|
||||
} Event_SoftAPMode_Distribute_Sta_IP_t;
|
||||
|
||||
|
Reference in New Issue
Block a user