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
+2 -2
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