[kaffe] some IPv6-related problem?
Ito Kazumitsu
kaz@maczuka.gcd.org
Mon Nov 3 14:40:02 2003
>>>>> "*" == Ito Kazumitsu <kaz@maczuka.gcd.org> writes:
>>>>> ":" == Guilhem Lavaux <guilhem@kaffe.org> writes:
:> Then, I don't see why addr should fail except that sizeof(addr) should
:> be exactly equal to sizeof(struct sockaddr_in). What happens if you put
:> sizeof(struct sockaddr_in) instead of sizeof(addr) ?
*> Partially succeded. At least "server = new ServerSocket(tryport)"
*> was successful.
*> Failure java.io.IOException: KCONNECT: Invalid argument
*> The server seems to be using IPv4 address but
*> "new Socket(InetAddress.getByName(null), port)" may use an IPv6
*> address?
No, "new Socket(InetAddress.getByName(null), port)" also used
AF_INET and not AF_INET6.
By changing
KCONNECT(fd, (struct sockaddr*)&addr, sizeof(addr), timeout)
to
KCONNECT(fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_in), timeout)
the regression test SoTimeout succeeded.