[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 02749) Re: ipv6 programming



In article <Pine.LNX.4.31.0401080911320.3876-100000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> (at Thu, 8 Jan 2004 14:13:18 +0100 (CET)), <6bone@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> says:

> I am trying the following:
> 
> 	int sock;
> 	struct sockaddr_in6 addr addr;
> 
> 	sock = socket(AF_INET6, SOCK_STREAM, ...)
> 	connect(sock, (struct sockaddr *) &addr, sizeof(addr));

This code cannot be compiled.


> If addr an ipv6-unicast all works fine.
> If addr an ipv6-mapped connect reports "Network is unreachable" (at bsd
> systems the code works fine)
> How can I use ipv6-mapped addr with linux ?

It seems to work fine with me.


Well, please specify your kernel version, libc version etc. and
the code itself.  Thank you.

--yoshfuji