netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* socket option IP_MSFILTER questions and observations
@ 2012-03-26 15:40 Cedric Jehasse
  2012-03-26 16:34 ` David Stevens
  2012-03-26 20:14 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Cedric Jehasse @ 2012-03-26 15:40 UTC (permalink / raw)
  To: netdev

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: socket option IP_MSFILTER questions and observations
  2012-03-26 15:40 socket option IP_MSFILTER questions and observations Cedric Jehasse
@ 2012-03-26 16:34 ` David Stevens
  2012-03-26 20:14 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Stevens @ 2012-03-26 16:34 UTC (permalink / raw)
  To: Cedric Jehasse; +Cc: netdev, netdev-owner

> 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.
        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.

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: socket option IP_MSFILTER questions and observations
  2012-03-26 15:40 socket option IP_MSFILTER questions and observations Cedric Jehasse
  2012-03-26 16:34 ` David Stevens
@ 2012-03-26 20:14 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2012-03-26 20:14 UTC (permalink / raw)
  To: cedric.jehasse; +Cc: netdev

From: Cedric Jehasse <cedric.jehasse@softathome.com>
Date: Mon, 26 Mar 2012 17:40:56 +0200

> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-26 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 15:40 socket option IP_MSFILTER questions and observations Cedric Jehasse
2012-03-26 16:34 ` David Stevens
2012-03-26 20:14 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).