Add IPv6-related header definitions

This commit is contained in:
Erik van der Kouwe
2010-01-25 18:13:23 +00:00
parent 3ec29ae85e
commit 0e564a1419
2 changed files with 34 additions and 0 deletions

View File

@@ -87,4 +87,17 @@ _PROTOTYPE( int socket, (int _domain, int _type, int _protocol) );
#define PF_UNIX AF_UNIX
#define PF_UNSPEC AF_UNSPEC
/* based on http://tools.ietf.org/html/rfc2553 */
struct sockaddr_storage
{
sa_family_t __ss_family;
char __ss_pad1[6];
#ifdef __LONG_LONG_SUPPORTED
int64_t __ss_align;
#else
int32_t __ss_align[2];
#endif
char __ss_pad2[112];
};
#endif /* SYS_SOCKET_H */