🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2074

[PATCH net-next v11 5/6] netlink: specs: rt-addr: document AF_PACKET multicast dumps

#2074
From: Yuyang Huang
Date: Mon, 12 Oct 2026 01:17
60 lines
11197 bytes
Add the global flag, list the attributes the AF_PACKET dump uses and
describe how ifa-family selects IPv4, IPv6 or link-layer output for
RTM_GETMULTICAST.

Signed-off-by: Yuyang Huang <sigefriedhyy@gmail.com>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 Documentation/netlink/specs/rt-addr.yaml | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/Documentation/netlink/specs/rt-addr.yaml b/Documentation/netlink/specs/rt-addr.yaml
index 17ead22034515..cccfccf49cc11 100644
--- a/Documentation/netlink/specs/rt-addr.yaml
+++ b/Documentation/netlink/specs/rt-addr.yaml
@@ -77,6 +77,8 @@ definitions:
         name: mcautojoin
       -
         name: stable-privacy
+      -
+        name: global
 
 attribute-sets:
   -
@@ -168,7 +170,17 @@ operations:
           attributes: *ifaddr-all
     -
       name: getmulticast
-      doc: Get / dump IPv4/IPv6 multicast addresses.
+      doc: |
+        Get / dump multicast addresses. ifa-family must select the address
+        family: AF_INET or AF_INET6 for the IP multicast groups joined on
+        a device, AF_PACKET for the link-layer multicast addresses in the
+        device filter. Link-layer entries added explicitly, e.g. with
+        SIOCADDMULTI or "bridge fdb add ... self", rather than by a
+        protocol join are reported with the global flag set. For AF_PACKET
+        a non-zero ifa-index restricts the dump to that device and
+        ifa-prefixlen, ifa-flags and ifa-scope must be zero, AF_INET and
+        AF_INET6 apply this and target-netnsid with NETLINK_GET_STRICT_CHK
+        only.
       attribute-set: addr-attrs
       fixed-header: ifaddrmsg
       do:
@@ -181,10 +193,13 @@ operations:
             - multicast
             - mc-users
             - cacheinfo
+            - flags
+            - target-netnsid
       dump:
         request:
           value: 58
-          attributes: []
+          attributes:
+            - target-netnsid
         reply:
           value: 58
           attributes: *mcaddr-attrs
-- 
2.43.0
Technical Details
Message-ID: <20261012011707.3378-6-sigefriedhyy@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344672-linux-kernel-netdev=dewy.ru
References: <20261012011707.3378-1-sigefriedhyy@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344672-linux-kernel-netdev=dewy.ru
From: sigefriedhyy@gmail.com (Yuyang Huang)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v11 5/6] netlink: specs: rt-addr: document AF_PACKET multicast dumps
Date: Mon, 12 Oct 2026 10:17:06 +0900
Organization: Usenet Network
Sender: uyoko90@gmail.com (Yuyang Huang)
Message-ID: <20261012011707.3378-6-sigefriedhyy@gmail.com>
References: <20261012011707.3378-1-sigefriedhyy@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1655517"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4LqVuz3ntiB0Q+4aoEVphMv7Fds= sha256:SyCbtg+57oxoPHPanTVFvDGWV2W3Lh4g+JRmid7AoCk=
	sha1:dses7vTXMreMBmqj9LsYFPHJToM= sha256:/UOazFbtOYB6pIBphYXgKKV8id2cK28egR1p4fu3uTw=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 3C8C610FAB2; Mon, 12 Oct 2026 04:21:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GlEjRJI1x6s1;
	Mon, 12 Oct 2026 04:21:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344672-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 031C810E0F3; Mon, 12 Oct 2026 04:21:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id B4CC03CEF7; Mon, 12 Oct 2026 01:17:49 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CFC1386C36;
	Mon, 12 Oct 2026 01:17:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BiqNsmzn"
X-Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F98368D76
	for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 01:17:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791767869; cv=none; b=fU7Jq+PEJJ9Fjy3gtuMv6+5bnDYcofxtZZPFL/cWuqm+Qwhllyh1uS+g+OvTsGU6VyEatJpDBTBcBXbKmf7j9zTdgV/1qnAFLZnHnRQWcm4fjVJnwCkvJGkdmjzuDfEbfISm+egjGkJg0MFgkdJPR+tg+tn3/pCyt22emdFxN64=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791767869; c=relaxed/simple;
	bh=USMYquWjDSlhNyRAuuQZlk822YJxe0sgKgXXZbTaiuM=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=kKiCUyJOWaAVx42DZ7xUDVoo5U82JtVYmnDcBxikZAC+gDok+kicwkZt0oNdRT83dSjDC2+4gAi8eYsLk4ca6Nt9zqb6IdReg49kxUc/hblwIfyrFiAe7H/vPyrfgn+H6XvqoGJImPY3VB5WZBNSdxMX3TiuDj9pMSmdMndkgAA=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BiqNsmzn; arc=none smtp.client-ip=209.85.215.173
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-cd5c9e52398so404795a12.1
        for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 18:17:47 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1791767867; x=1792372667; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=RNJQaLaUPhfizQ3mt3ZckrLpssIZdRd+0u34vIFrxiI=;
        b=BiqNsmzn2Bw1P9Z9RyN0iJgNZZW4ZGR8j8fR76uTOFpgO59/sb0vysH4MqXa9XeCTC
         GVMB4x2Q/jYvqbDWMcxTw+/fYo+x8nvfnn7q5gfnHfEl+jVxnJZqdKvLfRSWN7IM96oi
         1LOAx4euHhj3fXwkEIFQyoLDsChP6U7KnEREVCvgtDYtsaF3FvQDhxX4eF/deNEU2z2Q
         ZCWSd4TWruvnzwWoR955RmK78MWzsS+skbTLpP0oE2j2/962MlpaGAz+q4a11oLXkNvl
         E2xNUb6NqiR+6uB1kMbx71/VNOqCMFb+9ZP6tbSE/gNF0hInQrKUHlXE0GbgZucalBPt
         hhMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791767867; x=1792372667;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:sender:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=RNJQaLaUPhfizQ3mt3ZckrLpssIZdRd+0u34vIFrxiI=;
        b=XbeDdQ7Bbnk9R0NzMY7/+Y9PB/sd97+GdqK+PDiqt5i3qSd+xfC1U1CJR2tVlb82W7
         fYN30W/HogZ8Cl/a5bEtyUQ8EFi8UpHq06bZh4ce/kjw44ABpsck+hfIQYSUTGq9yrJl
         W60igOWg6u3JGTniVQNKebnR2j9NPYi6pQVXfIGgrnX0VI1DfDuBJt//riz7BbpZRT1H
         fawH0qCffjxGJ4gZtj7pMKLmqQ0vTlinbrpolaXZwVUoXlW/lYLKyF22lFbBCiMAoXSj
         xr1dlmeCPz/b9AEeo1KuyIQ4lJhYu3DZP9NLTO0owuzlrPbbsZN+WVA3hiuDGDVfS5Ao
         WA4w==
X-Forwarded-Encrypted: i=1; AKwUvBx14AzzHWPyuvQbx7zsxqsjItYldeBLgKJXe+6ZBHoLXffdmOyBHmlGGff365uQispxCnJJ0Co=@vger.kernel.org
X-Gm-Message-State: AFq9FYJ5imqVlYyv3fg7ipW4iCyHB1CIjhcop9e7gnhV5/tbGDcklr5Q
	nmwsG9PKU0y2mXZgASDhd7BoRsLzjWxSCEOiTuWj4Di0wr2qV3Nj3dee
X-Gm-Gg: AYBFou28laOTKXd1HOSZN4NviqkJdoFaXiZg3MqwvCjTRq444DF/u7xYOfLUUIFzvTB
	IJzzKWOiAvfPO19suZ+YLkPqBLQKaBRUtnUFf/5NQ81yKyFxr4gePw3ySiG8RmNdG4bKJS1Vt21
	8O3L6YLfDtVdw0qmyM3FahxVkWzudyPlyvvj4nkrjmrPN0znzueWRoPTT2vfIdarMmEhtr/W1dl
	EWJ7SukyZ3p+AJS5S5DzZcH4kN5YVH/bwanuLTKzIIZDITNtuPBlxTBCDNbjCv7nU1wVokOgt6U
	fBx4g7ci4drRqPLg70mGt0NsRQfsdYImC0n4HKE6FU3ktgRy8U9lSdhwT3hPAN/zvL4J4bZsnRf
	5awSmSYRI3Dfx9KWZqqKBH1wzDhZ6jPhGaItETTUxpQ+jZCJs2UKdRnHk6aR7alTCK6lJBPJGE0
	z6D44ci6Tvt0XCVJI73fmbbz6JZD1lLN6oFxkrMo8iB3k7GiWtN2gwm4683/pPNoQbACReb5ape
	2TW6/8uRWOFc8aM8TydQgsjHjWwFRh145BACaKqi81CRX92sVqbl77k58G/OuNdtzvO1lEXg+Uh
X-Received: by 2002:a17:90b:4fcb:b0:3a6:dc2f:f07f with SMTP id 98e67ed59e1d1-3ab3a609f14mr6808753a91.10.1791767866883;
        Sun, 11 Oct 2026 18:17:46 -0700 (PDT)
X-Received: from m-upc-A520M-HDV.lan (oki-109-236-14-10.jptransit.net. [109.236.14.10])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ab38dd5864sm13743307a91.8.2026.10.11.18.17.41
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 11 Oct 2026 18:17:46 -0700 (PDT)
X-Cc: Ajay Singh <ajay.kathat@microchip.com>,
	Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	"David S. Miller" <davem@davemloft.net>,
	David Ahern <dsahern@kernel.org>,
	Donald Hunter <donald.hunter@gmail.com>,
	Eric Dumazet <edumazet@google.com>,
	Ido Schimmel <idosch@nvidia.com>,
	Jacob Keller <jacob.e.keller@intel.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Johannes Berg <johannes@sipsolutions.net>,
	Kees Cook <kees@kernel.org>,
	Kory Maincent <kory.maincent@bootlin.com>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	Nicolas Dichtel <nicolas.dichtel@6wind.com>,
	Nikolaos Gkarlis <nickgarlis@gmail.com>,
	Paolo Abeni <pabeni@redhat.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Shuah Khan <shuah@kernel.org>,
	Simon Horman <horms@kernel.org>,
	Stanislav Fomichev <sdf.kernel@gmail.com>,
	Vadim Fedorenko <vadim.fedorenko@linux.dev>,
	Willem de Bruijn <willemb@google.com>,
	linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <20261012011707.3378-1-sigefriedhyy@gmail.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>