From owner-freebsd-java@FreeBSD.ORG Wed Jan 19 13:38:00 2005 Return-Path: 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 2F3C516A4CE for ; Wed, 19 Jan 2005 13:38:00 +0000 (GMT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0ADE43D4C for ; Wed, 19 Jan 2005 13:37:53 +0000 (GMT) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id j0JDf9qk075168; Wed, 19 Jan 2005 15:41:09 +0200 (EET) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id j0JDf9q2075167; Wed, 19 Jan 2005 15:41:09 +0200 (EET) (envelope-from ml) Date: Wed, 19 Jan 2005 15:41:09 +0200 From: Alexey Zelkin To: freebsd-java@freebsd.org Message-ID: <20050119134109.GA75103@phantom.cris.net> References: <20050119101554.GA17833@82-168-140-74-bbxl.xdsl.tiscali.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050119101554.GA17833@82-168-140-74-bbxl.xdsl.tiscali.nl> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i Subject: Re: IPv6 works ok for jdk15 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 13:38:00 -0000 hi, It means what NetworkInterface class works as expected only. Unfortunatelly IPv6 support is deeply integrated with java.net support, and should be tested in all aspects. As for jdk14 -- we can't make two functions (only!) work as expected by JCK (without kernel modifications), and therefore had to disable IPv6 stack at all (at least in default configuration). PS: I did not test IPv6 support for 1.5.0 port at all, yet. So, I'd suggest to not to use it. On Wed, Jan 19, 2005 at 11:15:54AM +0100, Rene Ladan wrote: > Hi, > > I've commented out the 'setenv DONT_ENABLE_IPV6 YES' line to see if IPv6 > works, which it does. > > I'm running > > FreeBSD 5.3-STABLE #6: Wed Jan 12 20:03:28 CET 2005 > root@82-168-140-74-bbxl.xdsl.tiscali.nl:/usr/obj/usr/src/sys/RENE > > with net.inet6.ip6.v6only set to 0. > > The testip.java (attached) program produces the following output: > > rene@82-168-140-74-bbxl.xdsl.tiscali.nl:~/lang/java/test>~/test-jdk15/control/build/bsd-i586/bin/java -cp . testip > Interface lo0 has ip address /fe80:2:0:0:0:0:0:1 > is link local address > Interface lo0 has ip address /0:0:0:0:0:0:0:1 > is loopback address > Interface lo0 has ip address /127.0.0.1 > is loopback address > Interface fxp0 has ip address /fe80:1:0:0:2d0:59ff:fe01:ed22 > is link local address > Interface fxp0 has ip address /192.168.0.3 > is site local address > rene@82-168-140-74-bbxl.xdsl.tiscali.nl:~/lang/java/test>file testip.class > testip.class: compiled Java class data, version 49.0 > > Script done on Wed Jan 19 11:09:21 2005 > > which is the same when compiled and ran with jdk14 with IPv6 enabled. > -- > "It won't fit on the line." > -- me, 2001