socket option IP_MSFILTER questions and observations
Subsystems (2)
Hi,
I'm trying to use source specific multicast by setting the IP_MSFILTER socket option. I noticed i need to join the group with IP_ADD_MEMBERSHIP before setting the source filter. This is not the behavior i expected after reading RFC3678. A potential issue i'm thinking of with this approach: an IGMP report could be sent after joining a group but before the filter is set.
Is there a way to prevent this?
Thanks,
Cedric
This message and any attachments herein are confidential, intended solely for the addressees and are SoftAtHome's ownership. Any unauthorized use or dissemination is prohibited. If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
Quoted 5 lines
I'm trying to use source specific multicast by setting the
IP_MSFILTERsocket option. I noticed i need to join the group withIP_ADD_MEMBERSHIPbefore setting the source filter. This is not the behavior i expected after reading RFC3678.
RFC3678 doesn't say that an IP_MSFILTER will join a group
automatically. The model is that you join a group once and then dynamically set the source filters as they change over time.
Quoted 3 lines
A potential issue i'm thinking of with this approach: an IGMP report could be sent after joining a group but before the filter is set. Is there a way to prevent this?
Adding or changing the source filters triggers a new report
but you can use IP_ADD_SOURCE_MEMBERSHIP which does explicitly join a group with a source filter. In the kernel, this is done with an "any" join followed by setting a source filter which actually will result in 2 reports too, if there are no other processes using that group.
+-DLS
David Miller
maintainerFrom: Cedric Jehasse <[email protected]>
Date: Mon, 26 Mar 2012 17:40:56 +0200
Quoted 5 lines
This message and any attachments herein are confidential, intended solely for the addressees and are SoftAtHome's ownership. Any unauthorized use or dissemination is prohibited. If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
Do not send posting to this mailing list with such disclaimers, they make absolutely no sense on a publicly distributed mailing list that anyone in the world can legitimately read.