Ito Kazumitsu wrote:

Hi,



":" == Guilhem Lavaux <[EMAIL PROTECTED]> writes:



:> 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 ?

Unfortunately, No.

I will study this case further.  For now I have found that
in libraries/clib/net/PlainSocketImpl.c

r = KBIND(fd, (struct sockaddr*)&addr, sizeof(addr));

returns EINVAL (Invalid argument) and address family used here is
AF_INET and not AF_INET6.


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) ?

Cheers,
Guilhem Lavaux.


_______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to