[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210706011548.2201-1-callum.sinclair@alliedtelesis.co.nz>
Date: Tue, 6 Jul 2021 13:15:47 +1200
From: Callum Sinclair <callum.sinclair@...iedtelesis.co.nz>
To: dsahern@...nel.org, nikolay@...dia.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linus.luessing@...3.blue,
Callum Sinclair <callum.sinclair@...iedtelesis.co.nz>
Subject: [PATCH] net: Allow any address multicast join for IP sockets
For an application to receive all multicast packets in a range such as
224.0.0.1 - 239.255.255.255 each multicast IP address has to be joined
explicitly one at a time.
Allow the any address to be passed to the IP_ADD_MEMBERSHIP and
IPV6_ADD_MEMBERSHIP socket option per interface. By joining the any
address the socket will receive all multicast packets that are received
on the interface.
This allows any IP socket to be used for IGMP or MLD snooping.
Callum Sinclair (1):
net: Allow any address multicast join for IP sockets
net/ipv4/igmp.c | 40 ++++++++++++++++++++++++++++++++--------
net/ipv6/mcast.c | 20 ++++++++++++++------
2 files changed, 46 insertions(+), 14 deletions(-)
--
2.32.0
Powered by blists - more mailing lists