Bug#564232: bind behaviour different between linux and freebsd?
----------------original message-----------------
De: "Jan-Benedict Glaw" jbglaw@lug-owl.de
A: "Xavier Grave" grave@ipno.in2p3.fr, 564232@bugs.debian.org
Date: Sat, 9 Jan 2010 11:24:15 +0100
-------------------------------------------------
>>
>> sin.sin_port = 5786;
> `errno' should contain more detailed information about why it failed.
> Also, keep in mind that "sin.sin_port = 5786" is probably not what you
> want, think of network byte order! Sparc and PPC are big endian and I
> guess that amd64 is little endian.
changing
sin.sin_port = 5786;
to
sin.sin_port = htons (5786);
doesn't change results on kfreebsd amd64 arch
Reply to: