feat(esp8266): Change ip_addr/ip_addr_t to ip4_addr/ip4_addr_t

This commit is contained in:
Zhang Jun Hao
2018-05-01 13:26:52 +08:00
parent 8f93ab7629
commit 57880c7a41
3 changed files with 9 additions and 9 deletions

View File

@ -87,8 +87,8 @@ enum dhcp_status {
struct dhcps_lease { struct dhcps_lease {
bool enable; /**< enable DHCP lease or not */ bool enable; /**< enable DHCP lease or not */
struct ip_addr start_ip; /**< start IP of IP range */ struct ip4_addr start_ip; /**< start IP of IP range */
struct ip_addr end_ip; /**< end IP of IP range */ struct ip4_addr end_ip; /**< end IP of IP range */
}; };
enum dhcps_offer_option { enum dhcps_offer_option {

View File

@ -63,7 +63,7 @@ struct station_info {
STAILQ_ENTRY(station_info) next; /**< Information of next AP */ STAILQ_ENTRY(station_info) next; /**< Information of next AP */
uint8 bssid[6]; /**< BSSID of AP */ uint8 bssid[6]; /**< BSSID of AP */
struct ip_addr ip; /**< IP address of AP */ struct ip4_addr ip; /**< IP address of AP */
}; };
/** /**

View File

@ -142,9 +142,9 @@ typedef enum {
} WIFI_INTERFACE; } WIFI_INTERFACE;
struct ip_info { struct ip_info {
struct ip_addr ip; /**< IP address */ struct ip4_addr ip; /**< IP address */
struct ip_addr netmask; /**< netmask */ struct ip4_addr netmask; /**< netmask */
struct ip_addr gw; /**< gateway */ struct ip4_addr gw; /**< gateway */
}; };
/** /**
@ -327,9 +327,9 @@ typedef struct {
} Event_StaMode_AuthMode_Change_t; } Event_StaMode_AuthMode_Change_t;
typedef struct { typedef struct {
struct ip_addr ip; /**< IP address that ESP8266 station got from connected AP */ struct ip4_addr ip; /**< IP address that ESP8266 station got from connected AP */
struct ip_addr mask; /**< netmask that ESP8266 station got from connected AP */ struct ip4_addr mask; /**< netmask that ESP8266 station got from connected AP */
struct ip_addr gw; /**< gateway that ESP8266 station got from connected AP */ struct ip4_addr gw; /**< gateway that ESP8266 station got from connected AP */
} Event_StaMode_Got_IP_t; } Event_StaMode_Got_IP_t;
typedef struct { typedef struct {