IPV6 Multicast Sockets



Hi.
I'm adding IPV6 support to my app, and I have a UDP Broadcast socket
that I need to redo using IPV6.
I know that IPV6 doesn't have a notion of broadcast anymore, its all
multicast (broadcast translates to a multicast address of ff02::1
essentially).
However, the following code throws an exception on the
SetSocketOption() call:

Socket s1 = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram,
ProtocolType.Udp);
s1.SetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.Broadcast, 1);
s1.Bind(new IPEndPoint(IPAddress.IPv6Any, 60000));
s1.SetSocketOption(SocketOptionLevel.IPv6,
SocketOptionName.AddMembership,
new MulticastOption(IPAddress.Parse("ff02::1")));

Any ideas?

Thanks.

.



Relevant Pages

  • Re: IPV6 Multicast Sockets
    ... I'm adding IPV6 support to my app, and I have a UDP Broadcast socket ... multicast (broadcast translates to a multicast address of ff02::1 ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MAC address of an IPv6 address
    ... use the SIOCGARP ioctl and get the MAC adress from the ARP cache. ... IPv6 does not use ARP. ... There is no such thing as broadcast in IPv6. ... as the "all nodes" multicast address to reach all nodes ...
    (comp.dcom.lans.ethernet)
  • Re: IPv6 "Jubmo Payload" Broadcast sample for Visual Basic .Net?
    ... I got this from the IPv6 Group: ... I have hit a 64K limit in UDP broadcasting. ... > of coding headache if I can get a IPv6 Broadcast to work with Jumbo ... The "jumbo payload" option is designed for very high speed networks that ...
    (microsoft.public.dotnet.languages.vb)
  • IPv6 "Jubmo Payload" Broadcast sample for Visual Basic .Net?
    ... IPv6 spec: ... IPv6 Sample C# Client/Server ... I am developing an application where I need to broadcast information to ... "Jumbo Payload", it could save me a good deal ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help Broadcasting a UDP packet on the LAN:URGENT
    ... Porting broadcast applications to IPv6 requires re-thinking the problem, ... >> does the box itself have a virtual interface on the VLAN, ... you send packets and process ...
    (freebsd-net)