IPv6 works ok for jdk15

Alexey Zelkin phantom at FreeBSD.org.ua
Wed Jan 19 05:38:00 PST 2005


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 at 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 at 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 at 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




More information about the freebsd-java mailing list