Re: HELP - Solaris9 & getpeername()

From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 10/27/03


Date: 27 Oct 2003 10:36:19 GMT

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.

Why is that a problem? The peer address is likely a "IPv4 mapped" address.

Casper

-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

Quantcast