Re: ipv6 and ipv4 interaction weirdness

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Fri Mar 11 2005 - 10:00:05 EST


In article <20050311121655.GE14146@xxxxxxxxxx> (at Fri, 11 Mar 2005 23:16:55 +1100), CaT <cat@xxxxxxxxxx> says:

> If it bound to :: port 22 then 0.0.0.0:22 would fail.
>
> On the other hand if I got it to bind to each address individually then
> both ipv4 (2 addresses) and ipv6 (1 address) binds would succeed.
>
> Maybe I'm just looking at it wrong but shouldn't ipv4 and ipv6 interfere
> with each other?

It is 100% intended, even it is not similar to BSD variants do.

IPv4 and IPv6 share address/port space.
:: and 0.0.0.0 is special "any" address, thus they confict.
::ffff:a.b.c.d and a.b.c.d also conflict.

--yoshfuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/