PATCH: innd: seperate sockets for IPv4 and IPV6

Russ Allbery rra at stanford.edu
Mon Mar 24 16:58:08 UTC 2008


list-inn-workers at news.cistron.nl ("Miquel van Smoorenburg" ) writes:

> This patch makes innd listen on seperate sockets for IPv4 and IPv6
> connections if the IPV6_V6ONLY socketoption is available.
>
> Advantages are mostly cosmetic, but for me it's very useful to be
> able to better see what connections are IPv4 and what connections
> are IPv6 when running for example 'netstat -tn'.
>
> There might also be operating systems that still have seperate
> ipv4 and ipv6 TCP implementations, and advanced features like
> TCP SACK might not be available on V6 sockets.

This should also be done in all the other places where we bind sockets,
which in CURRENT should only be lib/network.c.  (STABLE has more code in
more places.)  This is the right thing to do and will avoid workarounds
for systems that bind IPv4 with IPv6 that we have now (although we
probably have to keep that workaround for the non-IPV6_V6ONLY case.  It
had been on my to-do list for a while to do something like this.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list