netdev
[Top] [All Lists]

Re: Receiving MLDv1 reports in a daemon

To: Madhavi <madhavis@xxxxxxxxxx>
Subject: Re: Receiving MLDv1 reports in a daemon
From: David Stevens <dlstevens@xxxxxxxxxx>
Date: Tue, 16 Mar 2004 20:29:13 -0800
Cc: madhavis@xxxxxxxxxx, netdev@xxxxxxxxxxx, netdev-bounce@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.33.0403170944260.23954-100000@pcz-madhavis.sasken.com>
Sender: netdev-bounce@xxxxxxxxxxx

madhavis@xxxxxxxxxx wrote on 03/16/2004 08:15:25 PM:

> Is there any other way to get the MLDv1 reports to my daemon. Any solution
> to this problem would be very helpful to me.

As I responded before, though you may not have seen it, you need to put
the device in "multicast promiscuous mode" by setting the IFF_ALLMULTI
interface flag (SIOCSIFFLAGS). Then you should receive all multicasts for
all groups (and all protocols) sent on that network. If you create the
socket as you described, your program should receive all ICMPv6
multicasts sent to any group.

In MLDv2, it's much easier. All reports are sent to the "all multicast
routers" multicast address, so you can simply join that group.

+-DLS

<Prev in Thread] Current Thread [Next in Thread>