[Live-devel] multicast & linux information
PROMONET Michel
michel.promonet at thalesgroup.com
Thu Oct 3 06:06:02 PDT 2013
Hi Ross,
We discussed several times about this subject and I would like to share what I understood from exchanges with RedHat support.
It seems that kernel maintainers chose to keep the backward compatibility with a default that cause receiving data from all multicast groups and not only from joined multicast group.
But they add since kernel 2.6.31 an option that allow to avoid this.
In a test program, I tryied adding
#if defined(__linux__) && !defined(IP_MULTICAST_ALL)
#warning linux is not able to filter multicast group that share same port without IP_MULTICAST_ALL option
#endif
#ifdef IP_MULTICAST_ALL
int mc_all = 0;
if ((setsockopt(sock, IPPROTO_IP, IP_MULTICAST_ALL, (void*) &mc_all, sizeof(mc_all))) < 0) {
perror("setsockopt() failed");
exit(1);
}
#endif
After this, multicast filter works "normally" (like windows & FreeBSD)
Do you think it could be possible to set this option in socketJoinGroup in a future release of live555 ?
Best Regards,
Michel.
[@@ THALES GROUP INTERNAL @@]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131003/4cb3a5b5/attachment.html>
More information about the live-devel
mailing list