mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
multicast: Extend ip address command to enable multicast group join/leave on
Joining multicast group on ethernet level via "ip maddr" command would not work if we have an Ethernet switch that does igmp snooping since the switch would not replicate multicast packets on ports that did not have IGMP reports for the multicast addresses. Linux vxlan interfaces created via "ip link add vxlan" have the group option that enables then to do the required join. By extending ip address command with option "autojoin" we can get similar functionality for openvswitch vxlan interfaces as well as other tunneling mechanisms that need to receive multicast traffic. The kernel code is structured similar to how the vxlan driver does a group join / leave. example: ip address add 224.1.1.10/24 dev eth5 autojoin ip address del 224.1.1.10/24 dev eth5 Signed-off-by: Madhu Challa <challa@noironetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
46a4dee074
commit
93a714d6b5
7 changed files with 98 additions and 7 deletions
|
@ -67,6 +67,7 @@ struct netns_ipv6 {
|
|||
struct sock *ndisc_sk;
|
||||
struct sock *tcp_sk;
|
||||
struct sock *igmp_sk;
|
||||
struct sock *mc_autojoin_sk;
|
||||
#ifdef CONFIG_IPV6_MROUTE
|
||||
#ifndef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
|
||||
struct mr6_table *mrt6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue