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:
parent
dcc081831e
commit
bbd8cfbfb5
@ -190,7 +190,7 @@ struct sockaddr_in6
|
|||||||
sa_family_t sin6_family; /* Address family: AF_INET6 */
|
sa_family_t sin6_family; /* Address family: AF_INET6 */
|
||||||
in_port_t sin6_port; /* Port in network byte order */
|
in_port_t sin6_port; /* Port in network byte order */
|
||||||
uint32_t sin6_flowinfo; /* IPv6 traffic class and flow information */
|
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 */
|
uint32_t sin6_scope_id; /* Set of interfaces for a scope */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -228,14 +228,14 @@
|
|||||||
* accommodate all supported protocol-specific address structures, and (2)
|
* accommodate all supported protocol-specific address structures, and (2)
|
||||||
* aligned at an appropriate boundary so that pointers to it can be cast
|
* aligned at an appropriate boundary so that pointers to it can be cast
|
||||||
* as pointers to protocol-specific address structures and used to access
|
* 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
|
#ifdef CONFIG_NET_IPv6
|
||||||
struct sockaddr_storage
|
struct sockaddr_storage
|
||||||
{
|
{
|
||||||
sa_family_t ss_family; /* Address family */
|
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
|
#else
|
||||||
struct sockaddr_storage
|
struct sockaddr_storage
|
||||||
|
Loading…
Reference in New Issue
Block a user