ipv6: add support for NETDEV_RESEND_IGMP event
Subsystems (3)
PATCH 1/1 ipv6: add support for NETDEV_RESEND_IGMP event
This patch adds support for NETDEV_RESEND_IGMP event similar to how it works for IPv4.
Signed-off-by Vladislav Yasevich <[email protected]>
--- include/net/ndisc.h | 2 ++ net/ipv6/af_inet6.c | 8 +++++++- net/ipv6/mcast.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 58 insertions(+), 2 deletions(-)
include/net/ndisc.h +2 -0
@@ -439,8 +439,10 @@ void ndisc_update(const struct net_device *dev, struct neighbour *neigh,* IGMP */ int igmp6_init (void ); +int igmp6_late_init (void );void igmp6_cleanup (void ); +void igmp6_late_cleanup (void );int igmp6_event_query (struct sk_buff *skb);
net/ipv6/af_inet6.c +7 -1
@@ -1005,6 +1005,10 @@ static int __init inet6_init(void)if (err) goto seg6_fail; + err =igmp6_late_init (); +if (err) + goto igmp6_late_err; +#ifdef CONFIG_SYSCTL err =ipv6_sysctl_register ();if (err)
@@ -1015,8 +1019,10 @@ static int __init inet6_init(void)#ifdef CONFIG_SYSCTL sysctl_fail: -seg6_exit (); +igmp6_late_cleanup ();#endif +igmp6_late_err: +seg6_exit (); seg6_fail:calipso_exit (); calipso_fail:
net/ipv6/mcast.c +49 -1
69 lines not on this page · raw message
Signature · 1 line
2.7.4
From: Vladislav Yasevich <[email protected]>
Date: Tue, 28 Mar 2017 14:49:16 -0400
Quoted 4 lines
This patch adds support for
NETDEV_RESEND_IGMPevent similar to how it works for IPv4.Signed-off-by Vladislav Yasevich <[email protected]>
Applied, but:
Quoted 8 lines
net/ipv6/mcast.c +5
-0+void igmp6_late_cleanup (void ) +{ +unregister_netdevice_notifier (&igmp6_netdev_notifier); +} +Signature · 1 line
2.7.4
Do not add empty lines at the end of files like this.
Thanks.