posix: in: Fix sockaddr_in6 structure
The sin6_family member was an int. This caused the structure to take 32 bytes which was greater than sockaddr_storage size (28 bytes). Using the type sa_family_t for sin6_family member fixes this issue. Signed-off-by: Francois Berder <francois.berder@imgtec.com>
This commit is contained in:
parent
de41971aab
commit
a5003e8311
@ -239,7 +239,7 @@ struct sockaddr_in6 {
|
|||||||
/**
|
/**
|
||||||
* Protocol family, always AF_INET6. Member of struct sockaddr_in6
|
* Protocol family, always AF_INET6. Member of struct sockaddr_in6
|
||||||
*/
|
*/
|
||||||
int sin6_family; /**< Protocol family, always AF_INET6 */
|
sa_family_t sin6_family; /**< Protocol family, always AF_INET6 */
|
||||||
in_port_t sin6_port; /**< Port number */
|
in_port_t sin6_port; /**< Port number */
|
||||||
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 address */
|
struct in6_addr sin6_addr; /**< IPv6 address */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user