On Sun, 2007-10-14 at 11:58 +0200, John Hay wrote:
[...]
> Ah, I forgot (maybe just conveniently :-)) that only late BSD4.3 and
> BSD4.4 derived stacks have the sin*_len elements in their sockaddr*
> structures.
> 
> According to rfc 3493 that defines the "Basic Socket Interface Extensions
> for IPv6" they should then also define SIN6_LEN, so it is probably best
> to check for that. bind() do need the different lengths, so I came up
> with this new patch. You can try that.

That compiles.
And seems better to use the RFC-defined preprocessor constant than an
OS-dependent since that may hit the Linux world too one day.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



