From a39cb73e58fee2c78046f824797028c5074d06b8 Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Fri, 22 Jan 2010 10:45:43 +0000 Subject: [PATCH] IPv6 address family and protocol familyconstants --- include/net/gen/socket.h | 3 ++- include/sys/socket.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 */ -- 2.44.0