From: Erik van der Kouwe Date: Fri, 22 Jan 2010 10:45:43 +0000 (+0000) Subject: IPv6 address family and protocol familyconstants X-Git-Tag: v3.1.6~48 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=a39cb73e58fee2c78046f824797028c5074d06b8;p=minix.git IPv6 address family and protocol familyconstants --- diff --git a/include/net/gen/socket.h b/include/net/gen/socket.h index f4de57c94..13334676d 100644 --- a/include/net/gen/socket.h +++ b/include/net/gen/socket.h @@ -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__ */ diff --git a/include/sys/socket.h b/include/sys/socket.h index cf7221c4a..35da6e434 100644 --- a/include/sys/socket.h +++ b/include/sys/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 */