Re: HELP - Solaris9 & getpeername()

From: Oleg Yakovlev (yashka_at_optima.net.ua)
Date: 10/27/03


Date: Mon, 27 Oct 2003 13:29:44 +0200


Casper H.S. *** пишет:
> Oleg Yakovlev <yashka@optima.net.ua> writes:
>
>
>>I watch very strange behavior of the getpeername() in Solaris9. This
>>function returns sa_family=26 (IPV6) **ALWAYS**. I created short test
>>for it:
>
>
>
> I think your complaint should be directed at the X11 library; it *always*
> uses an IPv6 socket when connecting over TCP/IP.
But the netstat command shows this connection in IPV4 part. NOT in IPV6.
Why?
>
> Why is that a problem? The peer address is likely a "IPv4 mapped" address.
It is no problem for program which has the source. I simply re-factored
its sources for "IPV4 mapping". But it does not work for any old program
writed without *special* parts of code for IPV6. Do I need re-write all
my old sources? It is very hurt :(

-- 
872667394
Oleg N. Yakovlev, Dnepropetrovsk, Ukraine
http://www.mitsubishi-club.dp.ua
http://www.yashka.dp.ua

Quantcast