summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-21 01:43:58 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-21 01:43:58 +0000
commit938bc12e7474d0eee831b9e7588664383e499124 (patch)
tree8cc63d00c1620a1466afb5358853aef27ab45ca0 /sys/compat/linux
parentbf3dda9a4a215ab111a7688acf2488b033d2633f (diff)
translate LINUX_AF_INET6 (10) into AF_INET6.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_socket.c4
-rw-r--r--sys/compat/linux/linux_socket.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 136e292b103..731f41ca902 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.19 2001/05/24 06:00:09 jasoni Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.20 2001/06/21 01:43:57 itojun Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -125,6 +125,8 @@ linux_to_bsd_domain(ldom)
return AF_IPX;
case LINUX_AF_APPLETALK:
return AF_APPLETALK;
+ case LINUX_AF_INET6:
+ return AF_INET6;
default:
return -1;
}
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 15cecffd8da..1163702acc3 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.h,v 1.5 2000/07/23 22:35:38 jasoni Exp $ */
+/* $OpenBSD: linux_socket.h,v 1.6 2001/06/21 01:43:57 itojun Exp $ */
/* $NetBSD: linux_socket.h,v 1.3 1995/05/28 10:16:34 mycroft Exp $ */
/*
@@ -54,6 +54,7 @@
#define LINUX_AF_AX25 3
#define LINUX_AF_IPX 4
#define LINUX_AF_APPLETALK 5
+#define LINUX_AF_INET6 10
/*
* Option levels for [gs]etsockopt(2). Only SOL_SOCKET is different,