Hello Dimitris,

On 30/11/16(Wed) 13:44, Dimitris Papastamos wrote:
> [...] 
> I am working on a program that requires putting the node in
> all-multicast mode.  The program needs to see all the packets going to
> solicited-node multicast addresses.  I did this by modifying the
> interface flags to add IFF_ALLMULTI.

IFF_ALLMULTI is a private flag.  Only interface drivers should mess with
it.

> Unfortunately recvmsg() was only returning for the packets destined
> for multicast groups I had explicitly joined and not all of them.

You certainly want to look at RFC 3376 and implement the IP_MSFILTER and
IPV6_MSFILTER socket options.  Some code exist in Linux/FreeBSD/Solaris
but I'm not sure how much of it is needed in your case.

I'll be happy to review such diff.

Cheers,
Martin

Reply via email to