Probably broken getaddrinfo() on Solaris x86.

Konrad Rieck kr at
Tue Oct 2 21:28:16 EST 2001


I discovered a strange problem with the latest version (2.9.9p2) and previous
versions of OpenSSH when using portforwarding und Solaris 8 x86. 

It seems like the getaddrinfo() function on Solaris 8 x86 is somehow broken,
instead of binding a port to, OpenSSH tried to bind it to ( was the ai->ai_addr returned by getaddrinfo() in

I could not reproduce this on Solaris 8 Sparc and I assume that Sun
developers mixed endianess on the x86 platform. 

I could fix the problem by marking the getaddrinfo() function as broken 
on Solaris 8 x86 (#define BROKEN_GETADDRINFO 1).

Maybe someone of you could recheck this problem and try to find a better
fix for it. 


Konrad Rieck <kr at>                    
Roqefellaz -, Public Key
--           Fingerprint: 5803 E58E D1BF 9A29 AFCA  51B3 A725 EA18 ABA7 A6A3

More information about the openssh-unix-dev mailing list