[kaffe] some IPv6-related problem?

Guilhem Lavaux guilhem@kaffe.org
Sun Nov 2 22:42:02 2003


Ito Kazumitsu wrote:

>Hi,
>
>  
>
>>>>>>":" == Guilhem Lavaux <guilhem@kaffe.org> 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.