[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081205.000322.147998414.davem@davemloft.net>
Date: Fri, 05 Dec 2008 00:03:22 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: pekkas@...core.fi
Cc: yoshfuji@...ux-ipv6.org, netdev@...r.kernel.org
Subject: Re: IPv6 multicast bind(), esp. v4-mapped addresses
From: Pekka Savola <pekkas@...core.fi>
Date: Fri, 5 Dec 2008 09:42:43 +0200 (EET)
> It does this:
>
> setsockopt(7, SOL_IPV6, IPV6_MULTICAST_HOPS, [1], 4) = 0
>
> In Java MulticastSocket API, if you only specify the port and not
> multicast group, it will bind to "::", and it succeeds. Afterwards
> Java issues an IPv4 IGMP join:
>
> setsockopt(7, SOL_IP, IP_ADD_MEMBERSHIP, "\351\f\f\f\0\0\0\0\0\0\0\0", 12) = 0
>
> So Java implementation will parse whether the group is IPv4 or IPv6
> multicast -- it isn't using MCAST_JOIN_GROUP API. It could be
> argued that if it already knows the protocol, it _could_ create IPv4
> socket from the start, instead of doing this via a mapped v6 socket.
>From what I've read, ipv4 mapped addresses are full of all kinds of
tricky cases and issues. And, given that, using ipv4 mapped address
for ipv4 multicast is just asking for trouble in my opinion.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists