[kaffe] some IPv6-related problem?
guilhem at kaffe.org
Sun Nov 2 22:42:02 PST 2003
Ito Kazumitsu wrote:
>>>>>>":" == Guilhem Lavaux <guilhem at 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 ?
>I will study this case further. For now I have found that
> 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) ?
More information about the kaffe