mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
include/sys/socket.h: With increased size of struct sockaddr_in6 of commit 55f31f03f9, the size of struct sockaddr_storage in include/sys/socket.h must also be increase so that it can contain the new, larger sockaddr_in6.
This commit is contained in:
@@ -228,14 +228,14 @@
|
||||
* accommodate all supported protocol-specific address structures, and (2)
|
||||
* aligned at an appropriate boundary so that pointers to it can be cast
|
||||
* as pointers to protocol-specific address structures and used to access
|
||||
* the fields of those structures without alignment problems
|
||||
* the fields of those structures without alignment problems.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
struct sockaddr_storage
|
||||
{
|
||||
sa_family_t ss_family; /* Address family */
|
||||
char ss_data[18]; /* 18-bytes of address data */
|
||||
char ss_data[26]; /* 26-bytes of address data */
|
||||
};
|
||||
#else
|
||||
struct sockaddr_storage
|
||||
|
||||
Reference in New Issue
Block a user