From 938bc12e7474d0eee831b9e7588664383e499124 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Thu, 21 Jun 2001 01:43:58 +0000 Subject: translate LINUX_AF_INET6 (10) into AF_INET6. --- sys/compat/linux/linux_socket.c | 4 +++- sys/compat/linux/linux_socket.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux') 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, -- cgit v1.2.3