diff options
author | Madhu Challa <challa@noironetworks.com> | 2015-02-25 09:58:34 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-27 16:25:24 -0500 |
commit | 46a4dee074b58c4256dbf6c2dbf199c372f85b04 (patch) | |
tree | 56d84988e3600df2dbe3b4f4be4df0ae01d94929 /include | |
parent | 723b8e460d87e957f251dc5764f4ab86af6ab44e (diff) | |
download | linux-stable-46a4dee074b58c4256dbf6c2dbf199c372f85b04.tar.gz linux-stable-46a4dee074b58c4256dbf6c2dbf199c372f85b04.tar.bz2 linux-stable-46a4dee074b58c4256dbf6c2dbf199c372f85b04.zip |
igmp v6: add __ipv6_sock_mc_join and __ipv6_sock_mc_drop
Based on the igmp v4 changes from Eric Dumazet.
959d10f6bbf6("igmp: add __ip_mc_{join|leave}_group()")
These changes are needed to perform igmp v6 join/leave while
RTNL is held.
Make ipv6_sock_mc_join and ipv6_sock_mc_drop wrappers around
__ipv6_sock_mc_join and __ipv6_sock_mc_drop to avoid
proliferation of work queues.
Signed-off-by: Madhu Challa <challa@noironetworks.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ipv6.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4c9fe224d73b..b7673065c074 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -940,4 +940,12 @@ int ipv6_sysctl_register(void); void ipv6_sysctl_unregister(void); #endif +int ipv6_sock_mc_join(struct sock *sk, int ifindex, + const struct in6_addr *addr); +int __ipv6_sock_mc_join(struct sock *sk, int ifindex, + const struct in6_addr *addr); +int ipv6_sock_mc_drop(struct sock *sk, int ifindex, + const struct in6_addr *addr); +int __ipv6_sock_mc_drop(struct sock *sk, int ifindex, + const struct in6_addr *addr); #endif /* _NET_IPV6_H */ |