Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brian Haley
Date: Tuesday, March 17, 2009 - 8:59 am

Felix von Leitner wrote:

Please show me a porting guide that even mentions supporting IPv4-only mode
through an IPv6 socket by using this method.  There is none that I know of.


That was their decision, and it doesn't mean it's the right thing to do.  It
doesn't mean Linux shouldn't change either, but name-calling isn't going to get
you anywhere on this list.

Compare your bittorrent server to Apache, which is probably the most widely-used
server application in the world.  It doesn't do what you're trying to do.  See
http://httpd.apache.org/docs/2.2/bind.html and/or browse the source code.


Because if you want IPv4-only you open an AF_INET socket.  There is no
equivalent to IPv6-only, for example when you open an AF_INET6 socket and set
IPV6_ONLY on it.

-Brian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
socket api problem: can't bind an ipv6 socket to ::ffff:0. ..., Felix von Leitner, (Mon Mar 16, 4:48 pm)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Stephen Hemminger, (Mon Mar 16, 5:00 pm)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Felix von Leitner, (Mon Mar 16, 5:18 pm)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Felix von Leitner, (Tue Mar 17, 5:58 am)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Felix von Leitner, (Tue Mar 17, 7:14 am)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Brian Haley, (Tue Mar 17, 8:59 am)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Felix von Leitner, (Tue Mar 17, 10:51 am)
Re: socket api problem: can't bind an ipv6 socket to ::fff ..., Felix von Leitner, (Tue Mar 17, 11:01 am)