[ds6-devel] Re: is_double_binding_sane

Chris Leishman chris@leishman.org
Sun Dec 29 22:04:56 2002


On Sunday, December 29, 2002, at 11:19 PM, Mauro Tortonesi wrote:
<snip>
> i hope you will find a good solution for this problem...

I've done a bit of looking around at how other people approach this 
problem.  I think the best solution (and the most commonly accepted 
one) is to do the following:

On systems where IPV6_V6ONLY is not defined or the setsockopt with it 
fails:
	- Keep track of whether an IPv6 socket has been bound.
	- If a bind to IPv4 fails with EADDRINUSE and an IPv6 socket
	  has been bound, then just ignore the error.

I would probably extend this to only tracking IPv6 binds to 
IN6_ADDR_ANY, and only ignoring errors from IPv4 binds to IN_ADDR_ANY.

http://lists.debian.org/debian-ssh/2002/debian-ssh-200204/msg00009.html

Regards,
Chris



More information about the ds6-devel mailing list