multicast: Extend ip address command to enable multicast group join/leave on
authorMadhu Challa <challa@noironetworks.com>
Wed, 25 Feb 2015 17:58:35 +0000 (09:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 21:25:25 +0000 (16:25 -0500)
commit93a714d6b53d87872e552dbb273544bdeaaf6e12
tree3cc79521cb6dbcd600384507329ecef93ae618ab
parent46a4dee074b58c4256dbf6c2dbf199c372f85b04
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>
include/net/netns/ipv4.h
include/net/netns/ipv6.h
include/uapi/linux/if_addr.h
net/ipv4/devinet.c
net/ipv4/igmp.c
net/ipv6/addrconf.c
net/ipv6/mcast.c
This page took 0.027609 seconds and 5 git commands to generate.