>>>>> On Sat, 3 Jun 2000 10:24:28 +0300 (EET DST), 
>>>>> Martti Mela <[EMAIL PROTECTED]> said:

> How to call all-hosts group multicast address with getaddrinfo() so that
> both IP and v6 addresses are returned? Is there even all-hosts group in
> v6? The idea is to join the group without knowing the address family in
> use.

IPv6 has a notion of all-hosts group addresses:

      All Nodes Addresses:    FF01:0:0:0:0:0:0:1
                              FF02:0:0:0:0:0:0:1

   The above multicast addresses identify the group of all IPv6 nodes,
   within scope 1 (node-local) or 2 (link-local).
   (RFC 2373, Section 2.7.1)

However, I suspect that it is not so easy to join such groups
af-independently (using getaddrinfo). There would be at least two
problems:

- (as far as I know) there is no hostname corresponding to IPv6 all
  nodes group addresses (like all-systems.mcast.net in IPv4).

- socket options to join a multicast group (IPV6_JOIN_GROUP for IPv6,
  IP_ADD_MEMBERSHIP for IPv4) are not AF-independent, like other
  system calls such as bind, connect, sendto, etc...
  I hear that the IETF mboned wg is now considering a new API for
  multicasting that will be AF-independent, but the API has not been
  standardized (and there is no -or very few if any- implementations
  of the API).

                                        JINMEI, Tatuya
                                        Communication Platform Lab.
                                        Corporate R&D Center, Toshiba Corp.
                                        [EMAIL PROTECTED]

---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]

Reply via email to