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:
Gregory Nutt 2018-10-27 14:10:46 -06:00
parent dcc081831e
commit bbd8cfbfb5
2 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ struct sockaddr_in6
sa_family_t sin6_family; /* Address family: AF_INET6 */
in_port_t sin6_port; /* Port in network byte order */
uint32_t sin6_flowinfo; /* IPv6 traffic class and flow information */
struct in6_addr sin6_addr; /* IPv6 internet address */
struct in6_addr sin6_addr; /* IPv6 Internet address */
uint32_t sin6_scope_id; /* Set of interfaces for a scope */
};

View File

@ -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