Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4668013pxv; Tue, 6 Jul 2021 06:32:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdyCSZAyNaRuBPvFec35RDDinTPBvExYVjEprLW+/zhpA3uuMBB2lSpSM1Pthsdv5032Gm X-Received: by 2002:aa7:dc0c:: with SMTP id b12mr23278286edu.105.1625578327029; Tue, 06 Jul 2021 06:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625578327; cv=none; d=google.com; s=arc-20160816; b=TzWAlrOsOFjxmudIiesrHe7GAOXm+W/3WpNdgLbn23Rl1wKufdEelCbTmR97+YDbcF UsylRRL8PjeO6nikCqdCsITFcd/gCbsY/iuo5BMV1bj5ZlJwyuPHv/gVL66htB+hw2tv 1NAIrcMaCcAOMkN22Fpfy3NgJCES0drrt2a7jAH3eOrfn/2ADQ43+5XMh7+zMv3L87ij FfsdzC74Py5tf3g5okQakXu1k4sCxwlyoRv+D9MdfFYSpEyXhk1CzG/artswdsbA9aPF aWPHoaAwLSA3zC+Xo78TEorNQfIY7m6u4VKgXJAAz2NhMv4qWLCg5fhIY1FuQIgMxTop dSlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iW5yXRiM6Z1EIUMT/gNK7q4J8fz+0rzrf1+DLiKdxpM=; b=ZZURAzp2QS+FmMSUt0rNcHGSbCWjBlh4qzH3uKFk6WFGzF+mZTO3XINnnlBLa08tXl x2SrJewt49H7EaIhWO7SnKNnB/nYeB8mRpYRqxzSa05UZ/WdL1eQJP0VK++f3gzoZA6R gSh7HVDEPXjFSpn3pMr4Xu36dXZBzqs1/+pVLMGuBtCHxgM9gXSm42V2mNsNxLkCqN59 Uk0QhNjytHwGGMuD7Zbhd44EpcGggZivwPB2M4ac2/WOADWXwGlKQKXjBO1pdINDhy+5 Tf4+Y8QjPGJstbTq/JAjHCMOHN1YKOr8ylGQnJKZrS4roX6QaaGfwgW9uya0p0CPVXx6 y8yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SlEsc8WJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga21si4979999ejc.675.2021.07.06.06.31.43; Tue, 06 Jul 2021 06:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SlEsc8WJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231886AbhGFNa5 (ORCPT + 99 others); Tue, 6 Jul 2021 09:30:57 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42844 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbhGFNa5 (ORCPT ); Tue, 6 Jul 2021 09:30:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=iW5yXRiM6Z1EIUMT/gNK7q4J8fz+0rzrf1+DLiKdxpM=; b=SlEsc8WJ8dCWMCGBpOuP5kbHSX MQbmxA9+mGkDLJ46H816lJynbHV+Zzj0sHk+ZL+fgojNwBOs33QrmnXR09E3M2gv3lwoy4cG5u1Yp vk7jxpMGXCwQfEVQRrgoswm8CEWdScoVqO/cV1db6AID4SfQsnrVaTXBMP10FiZYQeOA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m0l7L-00CO3c-V0; Tue, 06 Jul 2021 15:28:03 +0200 Date: Tue, 6 Jul 2021 15:28:03 +0200 From: Andrew Lunn To: Callum Sinclair Cc: dsahern@kernel.org, nikolay@nvidia.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linus.luessing@c0d3.blue Subject: Re: [PATCH] net: Allow any address multicast join for IP sockets Message-ID: References: <20210706011548.2201-1-callum.sinclair@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210706011548.2201-1-callum.sinclair@alliedtelesis.co.nz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 06, 2021 at 01:15:47PM +1200, Callum Sinclair wrote: > 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. Do you really want all multicast frames, or just IGMP and MLD messages? What is the advantage of this solution over using pcap with a filter which matches on multicast? Andrew