From owner-freebsd-java Sat Jul 13 7:12:23 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14F4A37B400 for ; Sat, 13 Jul 2002 07:12:21 -0700 (PDT) Received: from crewsoft.com (papua.crewsoft.com [198.232.247.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F5843E58 for ; Sat, 13 Jul 2002 07:12:20 -0700 (PDT) (envelope-from cedric@wireless-networks.com) Received: from [192.168.10.219] (account cberger@wireless-networks.com HELO wireless-networks.com) by crewsoft.com (CommuniGate Pro SMTP 3.4.7) with ESMTP-TLS id 5396057; Sat, 13 Jul 2002 07:12:27 -0700 Message-ID: <3D30375C.3040805@wireless-networks.com> Date: Sat, 13 Jul 2002 11:21:16 -0300 From: Cedric Berger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Shannon -jj Behrens Cc: freebsd-java@FreeBSD.ORG Subject: Re: IPv6 in Java References: <20020711151633.E14694@alicia.nttmcl.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I tried to do that with OpenBSD one year ago. There was many problems. the two more important are: 1) OpenBSD/NetBSD and Linux uses a different value for AF_INET6, and, the emulation layer was not doing the syscall translation. FreeBSD may have the same problem. From a NetBSD PR from itojun: sys/compat/linux/linux_socket.c does not try to rewrite sa_family in sockaddr args to various syscalls that take sockaddr (connect, bind, sendto...). therefore, when LINUX_AF_xx differs from AF_xx, linux emulation won't work. {LINUX_,}AF_INET6 is an example. 2) JDK 1.4.0 on Linux try to read a file in /proc/sys/net/interface or something like that (use truss, I don't remember) to decide if there are IPv6-enabled interfaces on the host, and to decide whether or not enabling IPv6 support. This is easy to cheat-around: just copy this proc file from a linux system and put it under /emul/linux/proc... Cedric Shannon -jj Behrens wrote: >Has anyone gotten IPv6 working in Java on FreeBSD? Naturally, Java only >started supporting IPv6 in 1.4. Unfortunately, IPv6 doesn't seem to work >under linux-jdk-1.4.0. > >Thanks, >-jj > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message