From bbd8cfbfb5a26544868b61d00b80b8c7301beaed Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 27 Oct 2018 14:10:46 -0600 Subject: [PATCH] include/sys/socket.h: With increased size of struct sockaddr_in6 of commit 55f31f03f9cca55b8b94ebf31cef3f501d8d76cf, 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. --- include/netinet/in.h | 2 +- include/sys/socket.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/netinet/in.h b/include/netinet/in.h index 8a2700d6e3..b4d9d1ef02 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -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 */ }; diff --git a/include/sys/socket.h b/include/sys/socket.h index ee918d699f..4a9f2af824 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -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