[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 02444) help about igmp6_group_dropped()



Hi there.

I implmented a virtual network interface which can be
registered and unregistered dynamically on running.

I calls unregister_netdev() in order to unregister the device.
After unregistering the device, I found that the igmp6 multicast
address for that device still exists.

When the NETDEV_UNREGISTER event occurs, addrconf_ifdown()
is called. then addrconf_ifdown() calls ipv6_mc_destroy_dev(). and then
ipv6_mc_destroy_dev() calls igmp6_group_dropped().
igmp6_group_dropped() calls igmp6_leave_group() only if dev->flags is IFF_UP.

Here, I think the checking of IFF_UP is needless because dev->flags is already  not IFF_UP
in above situation. So I'm planning to delete the checking of dev->flags in igmp6_group_dropped().
Before deleting that, I want to hear your opinions.

thanks.