Skip to content

sizeof(struct sockaddr_storage) is smaller than sizeof(struct sockaddr_in6) #42945

Answered by rlubos
surfskidude asked this question in Q&A
Discussion options

You must be logged in to vote

Do you enable CONFIG_NET_IPV6? If not, struct sockaddr_storage will have a size of struct sockaddr_in.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by surfskidude
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #42942 on February 17, 2022 23:15.