LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Multicast "ipmr.c" misunderstood / bug / new feature.
@ 2007-02-11 21:59 Iratxo Pichel Ortiz
0 siblings, 0 replies; only message in thread
From: Iratxo Pichel Ortiz @ 2007-02-11 21:59 UTC (permalink / raw)
I have been working with multicast routing to build a multicast router.
The target system uses static multicast routers and we have used
smcroute user-space daemon. After some issues with that sofware I have
built a some kind of custom daemon.
This router has support for hotpluggable interfaces like wifi and usb ones.
I think that there is something I don't understand or is not supported
in the net/ipv4/ipmr.c Kernel router. This routing system registers the
function "ipmr_device_event" as a notifier so that when a device is
unregistered from the system the correspondings multicast virtual
interfaces are also unregistered.
This is fine, but the problem is that the function "vif_delete()", used
in the notifier and in the corresponding IOCTL does not release the
active routes (mfc_cache entries). When doing "cat /proc/net/ip_mr_vif"
the unregistered interfaces are no longer available, but when doing "cat
/proc/net/ip_mr_cache" weird entries are displayed. If the unregistered
device was an output vif the route entry is shown with no output vif. If
it was an input vif the entry is shown but not really valid.
I don't know if this is really the expected behaviour of the multicast
routing system or even this is the correct place to ask.
I have coded a small patch for the ipmr.c file that purges all the
routes related to a device when it is unregistered, leaving the tables
in a coherent state always. I am know debugging this feature.
So: Is this the correct behaviour or is a bug? And is this patch
interesting for the Kernel?
Thank you very much,
Iratxo Pichel Ortiz.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-11 22:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-11 21:59 Multicast "ipmr.c" misunderstood / bug / new feature Iratxo Pichel Ortiz
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).