Re: multicast group memberships purge on interface delete

2006-08-23 Thread David Stevens
Michal, > My question/suggestion: > Would it feasible to drop the relevant entries from sockets' multicast > membership lists on the interface > delete? Yes, I think this is needed. The original BSD code didn't have this problem because it didn't support removal of a device. I wondered

Re: multicast group memberships purge on interface delete

2006-08-23 Thread jamal
On Wed, 2006-23-08 at 15:29 +0200, Michal Růžička wrote: > No need to rmmod anything, just think of ppp or gre interfaces which come > and go > without any modules loading/unloading. But yes, the rmmod would probably be > needed in case of, for example, an ethernet device. > Ok - Same effect. i

Re: multicast group memberships purge on interface delete

2006-08-23 Thread Michal Růžička
You should be able to "fix it" in the kernel by listening to events of the interface/device disappearing. Interesting, I've thought that it would have to be done explicitly by the interface cleanup code, this approach looks promising to me. By "disappearing" i think you meant the netdevic

Re: multicast group memberships purge on interface delete

2006-08-23 Thread jamal
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 an

multicast group memberships purge on interface delete

2006-08-23 Thread Michal Ruzicka
Hello there, I've got the following question/suggestion: The situation today: When an interface is deleted and there happen to have been some multicast groups joined on it only the interface's list of multicast meberships is deleted. The sockets through which the groups were joined and more imp