[kaffe] some IPv6-related problem?

Guilhem Lavaux guilhem at kaffe.org
Fri Oct 31 23:44:02 PST 2003


Ito Kazumitsu wrote:

>Hi,
>
>Today's regression tests showed:
>
>FAIL: UDPTest.java
>FAIL: SoTimeout.java
>
>Let's look into the case of SoTimeout.java. SoTimeout.fail says:
> 
>java.lang.IllegalArgumentException: Bad port number: 65536
>   at java.net.InetSocketAddress.<init> (InetSocketAddress.java:71)
>   at java.net.ServerSocket.<init> (ServerSocket.java:175)
>   at java.net.ServerSocket.<init> (ServerSocket.java:149)
>   at java.net.ServerSocket.<init> (ServerSocket.java:130)
>   at SoTimeout.main (SoTimeout.java:17)
>
>Seeing that tryport of SoTimeout went to 65535, ServerSocket(tryport)
>must have thrown IOException.
>
>My FreeBSD machine is set up so that it uses IPv6, and I am afraid this
>failure is because libraries/clib/net/PlainSocketImpl.c does not fully
>support IPv6 addresses.  For example, gnu_java_net_PlainSocketImpl_socketCreate
>always calls KSOCKET(AF_INET, type, 0, &fd).
>  
>
Hi Ito, 

When I modified PlainDatagramSocketImpl.c I feared that sort of things may happen.
What happens if you modify the call in KSOCKET(AF_INET6, 0, &fd), does it work ?

Regards,

Guilhem.






More information about the kaffe mailing list