From: jamal <hadi@cyberus.ca>
To: David Stevens <dlstevens@us.ibm.com>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>, netdev@oss.sgi.com
Subject: Re: igmp snooping?
Date: Wed, 18 May 2005 22:13:43 -0400 [thread overview]
Message-ID: <1116468823.6240.34.camel@localhost.localdomain> (raw)
In-Reply-To: <OF6CAB3867.F641224F-ON88257006.00079FC5-88257006.00098A9E@us.ibm.com>
On Wed, 2005-18-05 at 18:44 -0700, David Stevens wrote:
> If you put the interface in multicast promiscuous mode (set flag
> IFF_ALLMULTI),
> you can receive all hardware groups without joining.
>
> For IGMP and MLD packets, one way to do that pat in an application is to
> create
> a raw socket and specify the protocol there. So, to receive all reports
> for any version of IGMP sent to any group, you can create a socket like
> this:
>
> s = socket(PF_INET, SOCK_RAW, IPPROTO_IGMP);
>
>
> For MLDv1 and MLDv2 (IPv6), they are part of ICMPv6, but you can use
> ICMPV6_FILTER with the MLD report types to receive only those.
>
> You can get the receiving interface as ancillary data on a recvmsg()
> call with the IPV6_PKTINFO socket option on Linux systems
> (IPV6_RECVPKTINFO when RFC 3542 compliant) for IPv6 and
> similarly with IP_PKTINFO with IPv4, I believe. You also can get this
> information by restricting the socket to receiving on a particular
> interface, if you don't want one socket to handle multiple interfaces.
> Then, you know which interface by which socket you received on.
>
Better approach than i proposed.
> So, you should be able to do most, possibly all, of what you want at
> application level without modification to the kernel, if you're looking
> to do this in an application and not a kernel module.
I think it belongs in user space. I would say its probably time that STP
also got moved out. The fact it's in the kernel has hurt addition of
interesting new features.
cheers,
jamal
next prev parent reply other threads:[~2005-05-19 2:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 22:14 igmp snooping? Lennert Buytenhek
2005-05-19 1:10 ` jamal
2005-05-19 1:44 ` David Stevens
2005-05-19 2:13 ` jamal [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-19 5:09 Jonathan Day
2005-05-19 13:43 ` jamal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1116468823.6240.34.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=buytenh@wantstofly.org \
--cc=dlstevens@us.ibm.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox