IPv6 address family and protocol familyconstants
This commit is contained in:
parent
4dfe5f49ba
commit
a39cb73e58
2 changed files with 6 additions and 3 deletions
|
@ -35,7 +35,8 @@ server/ip/gen/socket.h
|
|||
#define AF_X25 20 /* CCITT X.25 in particular */
|
||||
#define AF_OSINET 21 /* AFI = 47, IDI = 4 */
|
||||
#define AF_GOSIP 22 /* U.S. Government OSI */
|
||||
#define AF_INET6 23 /* IP version 6 */
|
||||
|
||||
#define AF_MAX 21
|
||||
#define AF_MAX 23
|
||||
|
||||
#endif /* __SERVER__IP__GEN__SOCKET_H__ */
|
||||
|
|
|
@ -82,7 +82,9 @@ _PROTOTYPE( int socket, (int _domain, int _type, int _protocol) );
|
|||
/* The following constants are often used in applications, but are not defined
|
||||
* by POSIX.
|
||||
*/
|
||||
#define PF_UNIX AF_UNIX
|
||||
#define PF_INET AF_INET
|
||||
#define PF_INET AF_INET
|
||||
#define PF_INET6 AF_INET6
|
||||
#define PF_UNIX AF_UNIX
|
||||
#define PF_UNSPEC AF_UNSPEC
|
||||
|
||||
#endif /* SYS_SOCKET_H */
|
||||
|
|
Loading…
Reference in a new issue