commit | 4520cfe1a1d4ae4aa11397614d9acd110ce9cec5 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Fri Aug 18 09:06:58 2017 +0300 |
committer | Anas Nashif <nashif@linux.intel.com> | Fri Aug 18 16:34:51 2017 -0400 |
tree | e117efbb02709b0e86d674c5f8c348aa23c4326b | |
parent | 85f7fbcfedd2bb0bcf03bcfe0af0cd439f1dfaa2 [diff] |
net: Define struct sockaddr_storage POSIX doesn't guarantee that "legacy" struct sockaddr is large enough for all usages, e.g. IPv6 addresses, and instead requires use of struct sockaddr_storage: http://pubs.opengroup.org/onlinepubs/009696699/basedefs/sys/socket.h.html ... shall define the sockaddr_storage structure. This structure shall be: Large enough to accommodate all supported protocol-specific address structures Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>