IPv6 comments

This commit is contained in:
llsth 2015-03-17 16:46:39 +01:00
parent 896c04adfa
commit c09c346f1d
1 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,7 @@
#define NTIMED_COMPILER_H
/*
* See alse:
* See also:
* http://codewiz.org/projects/amiga/Headers/CompilerSpecific.h
*
*/
@ -84,13 +84,15 @@ typedef unsigned int socklen_t;
typedef uint16_t in_port_t;
#endif
// Is this needed since we dont use IPv6 ?
// General socket address holding structure, big enough to hold either
// struct sockaddr_in or struct sockaddr_in6 data:
struct sockaddr_storage {
sa_family_t ss_family; // address family
// all this is padding, implementation specific, ignore it:
char __ss_pad1[128 - sizeof(sa_family_t)];
char __ss_pad1[128 - sizeof(sa_family_t)];
};
#endif