OpenBSD 4.4 gnutls-serv IPv6 Only Bug

Simon Josefsson simon at josefsson.org
Mon May 11 16:57:18 CEST 2009


Joe Orton <joe at manyfish.co.uk> writes:

> On Fri, Apr 24, 2009 at 07:47:36PM +0200, Simon Josefsson wrote:
>> I'm not sure what you mean with v6-mapped IPv4 addresses, though.  Is
>> there anything extra the code needs to do?
>
> I meant v4-mapped IPv6 addresses, not sure the inverse exists ;) You get 
> different behaviour on different platforms w.r.t. attempts to bind to 
> ::/port and 0.0.0.0/port for a given port, depending on whether
> v4-mapped IPv6 addresses are supported, and which order you attempt the 
> binds, etc.  For a test app it's probably sufficient to simply ignore 
> bind() errors and hope for the best.

Since we are changing how binding to sockets works, printing the error
may provide more debug information in case someone runs into a problem.
So I suggest we try the current code in GnuTLS 2.8.x and see if it
handles IPv4 and/or IPv6 properly on various platforms.

/Simon





More information about the Gnutls-devel mailing list