incubator-nuttx/include/netinet
Michael Jung 4f27140331 include/netinet/in.h: Rename __pad member to sin_zero in struct sockaddr_in.
Libwebsockets initializes the 'sin_zero' member of sockaddr_in objects to zeros.
Apparently, judging from mailing list entries, there are platforms on which incliinclunot
doing this causes undefined behaviour.

On NuttX compiling respective code is broken, as the corresponding member
variable is called '__pad'.  Neither in the 'nuttx' nor in the 'apps'
respository did I find any reference to this identifier.  Thus, I believe its a
safe bet to just rename it.

UNIX Network Programming states in this regard:

"The POSIX specification requires only three members in the structure: sin_family,
sin_addr, and sin_port. It is acceptable for a POSIX-compliant implementation to
define additional structure members, and this is normal for an Internet socket
address structure. Almost all implementations add the sin_zero member so that all
socket address structures are at least 16 bytes in size."
2019-07-29 08:25:35 -06:00
..
arp.h Remove dup definition in nuttx/net/arp.h and include/nuttx/net/ioctl.h 2018-11-09 13:59:45 -06:00
ether.h Clean up and review of header files for conformance to standards 2015-06-12 18:07:47 -06:00
in.h include/netinet/in.h: Rename __pad member to sin_zero in struct sockaddr_in. 2019-07-29 08:25:35 -06:00
ip.h Header file clean-up 2012-07-17 03:58:11 +00:00
ip6.h Header file clean-up 2012-07-17 03:58:11 +00:00
tcp.h Squashed commit of the following: 2018-03-12 10:59:46 -06:00
udp.h net/udp: Finish support for the UDP_BINDTODEVICE protocol socket option 2018-06-25 15:07:53 -06:00