From: jamal <hadi@cyberus.ca>
To: Michal Ruzicka <michal.ruzicka@comstar.cz>
Cc: netdev@vger.kernel.org
Subject: Re: multicast group memberships purge on interface delete
Date: Wed, 23 Aug 2006 08:32:11 -0400 [thread overview]
Message-ID: <1156336331.5035.79.camel@jzny2> (raw)
In-Reply-To: <021e01c6c6a4$6e7845f0$2303a8c0@mruzicka>
On Wed, 2006-23-08 at 13:08 +0200, Michal Ruzicka wrote:
> My question/suggestion:
> Would it feasible to drop the relevant entries from sockets' multicast
> membership lists on the interface
> delete? Yes, I do realize it would require to walk through a number of
> sockets to see if there is any
> multicast entry for the interface in question to delete. But this could be
> optimized by maintaining a list
> of sockets that have a multicast group joined on the interface (and keep a
> pointer to this list in the
> device structure). This would ease the job of the function handling leaving
> multicast groups, made
> its beahaviour more "deterministic" and possible errors reported by it more
> meaningful/reliable.
>
You should be able to "fix it" in the kernel by listening to events of
the interface/device disappearing. By "disappearing" i think you meant
the netdevice was totally rmmod-ed? The challenge is to make the app
also aware of you taking away the group from underneath them (thats why
i said "fix it")
These events are also available in user space via netlink. so an alter
your app could listen to them and make the group leaves instead of the
kernel.
cheers,
jamal
next prev parent reply other threads:[~2006-08-23 12:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-09 10:56 [RFC] [GIT PATCH] IPv6 Routing / Ndisc Fixes YOSHIFUJI Hideaki / 吉藤英明
[not found] ` <44D9D431.10101@tcs.hut.fi>
2006-08-09 21:37 ` Ville Nuorvala
2006-08-10 8:46 ` YOSHIFUJI Hideaki / 吉藤英明
2006-08-10 10:20 ` Ville Nuorvala
2006-08-10 12:07 ` Possible leak of multicast source filter sctructure Michal Ruzicka
2006-08-10 12:12 ` David Miller
2006-08-10 12:13 ` David Miller
2006-08-10 18:07 ` David Stevens
2006-08-23 11:08 ` multicast group memberships purge on interface delete Michal Ruzicka
2006-08-23 12:32 ` jamal [this message]
2006-08-23 13:29 ` Michal Růžička
2006-08-23 14:48 ` jamal
2006-08-23 18:51 ` David Stevens
2006-08-24 0:40 ` [RFC] [GIT PATCH] IPv6 Routing / Ndisc Fixes David Miller
[not found] ` <44DA274C.30205@tcs.hut.fi>
2006-08-10 0:05 ` David Miller
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=1156336331.5035.79.camel@jzny2 \
--to=hadi@cyberus.ca \
--cc=michal.ruzicka@comstar.cz \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).