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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>
Date: Monday, March 16, 2009 - 7:48 pm

Here's an strace:

socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sa_family=AF_INET6, sin6_port=htons(6969), inet_pton(AF_INET6, "::ffff:0.0.0.0", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address)

This is supposed to work, and it works on other operating systems, even
on Mac OS X.

I think it used to work on Linux, too.

I'm using 2.6.29-rc7 right now, but others have reported this not
working on distro kernels, too.

Felix
--
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.0...., Felix von Leitner, (Mon Mar 16, 7:48 pm)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Felix von Leitner, (Tue Mar 17, 8:58 am)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Felix von Leitner, (Tue Mar 17, 10:14 am)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Felix von Leitner, (Tue Mar 17, 2:01 pm)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Felix von Leitner, (Tue Mar 17, 1:51 pm)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Stephen Hemminger, (Mon Mar 16, 8:00 pm)
Re: socket api problem: can't bind an ipv6 socket to ::ffff:..., Felix von Leitner, (Mon Mar 16, 8:18 pm)