mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
Fixed using wrong sockaddr type in lwip_getaddrinfo when IPv6 is enabled
This commit is contained in:
@@ -59,6 +59,7 @@ typedef u8_t sa_family_t;
|
||||
typedef u16_t in_port_t;
|
||||
#endif
|
||||
|
||||
#if LWIP_IPV4
|
||||
/* members are in network byte order */
|
||||
struct sockaddr_in {
|
||||
u8_t sin_len;
|
||||
@@ -68,6 +69,7 @@ struct sockaddr_in {
|
||||
#define SIN_ZERO_LEN 8
|
||||
char sin_zero[SIN_ZERO_LEN];
|
||||
};
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
#if LWIP_IPV6
|
||||
struct sockaddr_in6 {
|
||||
|
||||
Reference in New Issue
Block a user