Article View: linux.kernel.netdev
Article #8220[PATCH iproute2-next] ip: netconf: show IPv6 force_forwarding
From: Gabriel Goller
Date: Wed, 28 Oct 2026 12:10
Date: Wed, 28 Oct 2026 12:10
52 lines
9103 bytes
9103 bytes
Allow users to inspect and monitor force_forwarding, which enables
per-interface IPv6 forwarding independently of the global forwarding
setting.
The sysctl was introduced with kernel commit
f24987ef6959 ("ipv6: add `force_forwarding` sysctl to enable per-interface forwarding").
Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
ip/ipnetconf.c | 4 ++++
man/man8/ip-netconf.8 | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ip/ipnetconf.c b/ip/ipnetconf.c
index 57bb99d1f061..915d84ffa403 100644
--- a/ip/ipnetconf.c
+++ b/ip/ipnetconf.c
@@ -109,6 +109,10 @@ int print_netconf(struct rtnl_ctrl_data *ctrl, struct nlmsghdr *n, void *arg)
print_on_off(PRINT_ANY, "forwarding", "forwarding %s ",
rta_getattr_u32(tb[NETCONFA_FORWARDING]));
+ if (tb[NETCONFA_FORCE_FORWARDING])
+ print_on_off(PRINT_ANY, "force_forwarding", "force_forwarding %s ",
+ rta_getattr_u32(tb[NETCONFA_FORCE_FORWARDING]));
+
if (tb[NETCONFA_RP_FILTER]) {
__u32 rp_filter = rta_getattr_u32(tb[NETCONFA_RP_FILTER]);
diff --git a/man/man8/ip-netconf.8 b/man/man8/ip-netconf.8
index 7fe3e5f35803..558c14eb0a45 100644
--- a/man/man8/ip-netconf.8
+++ b/man/man8/ip-netconf.8
@@ -15,8 +15,8 @@ The
.B ip netconf
utility can monitor IPv4 and IPv6 parameters (see
.BR "/proc/sys/net/ipv[4|6]/conf/[all|DEV]/" ")"
-like forwarding, rp_filter, proxy_neigh, ignore_routes_with_linkdown
-or mc_forwarding status.
+like forwarding, force_forwarding (IPv6 only), rp_filter, proxy_neigh,
+ignore_routes_with_linkdown or mc_forwarding status.
If no interface is specified, the entry
.B all
---
base-commit: 204a721033556114c81c47d00375f2d52e98e463
change-id: 20261028-ip_netconf_show-458e9b193239
Best regards,
--
Gabriel Goller <g.goller@proxmox.com>
Technical Details
Message-ID:
<20261028-ip_netconf_show-v1-1-a20fc6b20025@proxmox.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-352840-linux-kernel-netdev=dewy.ruShow 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-352840-linux-kernel-netdev=dewy.ru From: g.goller@proxmox.com (Gabriel Goller) Newsgroups: linux.kernel.netdev Subject: [PATCH iproute2-next] ip: netconf: show IPv6 force_forwarding Date: Wed, 28 Oct 2026 13:10:44 +0100 Organization: Usenet Network Message-ID: <20261028-ip_netconf_show-v1-1-a20fc6b20025@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1766088"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:aLZ8GEXfBoaTXxmSEuQkrKDgSJk= sha256:f6SGpu2zhUnw2FB8COLtTX8BCKtRtueQxIxYeRsk1qE= sha1:IRsnRmdDGegfi35/xJs4r9mD/uI= sha256:FkXSoOniAcXqpeUMgRFZwl+A+GYf7E4dXPMm/c/X8to= 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 45850125C35; Wed, 28 Oct 2026 15:12:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.95 X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no 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 qkwTa1okv4Qd; Wed, 28 Oct 2026 15:12:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-352840-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=proxmox.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 5FD98125C32; Wed, 28 Oct 2026 15:12:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 63EDD25E3D; Wed, 28 Oct 2026 12:11:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793189471; b=0yyDaF2RsM1ggSdvZg+CLvQJ0abXx9xTYwCZBsfwf+1e6JF48fS08KO6stMoKRdPPnaT jvI++F0QDBpn0r5EM0dafNJamSsVCfYyrUrnuWQ+jT3c2JHMS9G0DF9ZYEthMPg6HKD5/ gbvwzM0aDC5UUqTfrmUhHgtfcf8zSIZEZRUnnVr6O8BRRNiiKxQ0ZUG9WL7Lyb1HNUpVR tQkdzEmS0HblhsV527E2YKs/yPGFoy2L/Q8CDRa+r6hiU9IiqLOTD6oR+f4EgL5r3j9mV cX8MXObRNS48VfTGXX3SghgqUmpaVd+m6MuGGtdItWWtAfcXIXg8bVOB6cKPBJ6UP2w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793189471; h=X-Original-To:Received:DMARC-Filter:Received:From:Date:Subject: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:X-B4-Tracking:X-Change-ID:To:Cc: X-Mailer:X-Bm-Milter-Handled:X-Bm-Transport-Timestamp; bh=sm1BiODDX+3Q42f0BoXQJdYDF4JI4ZR4FmWTuNbj7uE=; b=NHAWL8vb2FXDY9S0iDWVQSHxxuoo3IOfXJp9gFE50zW4Z90xUuSxxGbOcYCfersGMaaD tEfySF3+EXHK4Q7CI8MTqvOVKLoUTvAAUBbcRAdzCk8NUnOOkJmbQxYij111R/VhQdnRc GLPHu6+lDjVGydLdVTA0NjqXYtpcoAloV2hRgzwJ7SUjNFsPWObOpiRlUDWKYgn0g6CjM 9t7eMC2JN5fmCbMBC1FSw4DKjjsay4jnhha7/ounqLtCi76/gdGDY9+S6DLt5yaXYrQVK 0tLdXcZY3s1nsJJH0a7c3uPSq5Sic4pA3wX0LPJeza4/NGMXr7a0PmQ7Rp45IY+TD+w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=proxmox.com; spf=pass smtp.mailfrom=proxmox.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08B07606A31F; Wed, 28 Oct 2026 12:11:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=94.136.29.106 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793189465; b=EOSUWfQMNDoL4ihTMNtXX0jHXWiNa+1vUQ0zj77POIpguQ3faDUB58BGXIG50U7RIkXD E9zLXR+7LrwsunhOSXrj2M+Go0TzzMkiqeQq7vXGH9lMpI1XUQNeA7Vzz84v47Tiv58EG g8Nk84wOZyic/IoCrmTrniNX958fiPZZ4301zO5WiFQXujRdvXnEe3l0KePkVmkgeHYEO RzTNFoJJc1x4nPwfmPh1oXFffZHThSaJBKT85xT29T/7Xxpdi6FRc0B06AJDbzSqtY80P mqV5mkuQCbUwnS75G9EuLHopqAoIEwZ05ItgsxgbgqAO5SZOP7pBpj6j/HxchXtPeMg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793189465; h=DMARC-Filter:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:X-B4-Tracking:X-Change-ID:To:Cc: X-Mailer:X-Bm-Milter-Handled:X-Bm-Transport-Timestamp; bh=sm1BiODDX+3Q42f0BoXQJdYDF4JI4ZR4FmWTuNbj7uE=; b=NY6QOENr7H8tkC+HgIDwHO5RA+uBeYzRxc+PBCsbKyPwUFL1DM8M8npbNiu+3z4NAW3+ 4lIo7tFmStC/5Pz9AKJEI65j4bafXRmfe9S9izRrcbRroj981FdHuAYv61eBILBBIdCph aQe6AICebWJK0J9Pw3/381bNFev7bYwWCVxWGc4OIxl7yL1m2XcrU/B3tS6xCb/mejHkV gOQBC2V1116k1GsASfuO7l3XfDOeSxyjABnuU6eWptvU2vAAruDHYnAxPRoVX88kM3KFJ o+I+rOeZoIgqaXzFZHhJmV2Vd3UkCrSVKRJ42C4bya7/dxfdrQk9x24imNnMT7AWwNA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=proxmox.com; spf=pass smtp.mailfrom=proxmox.com; arc=none smtp.remote-ip=94.136.29.106 X-Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CF40606A323 for <netdev@vger.kernel.org>; Wed, 28 Oct 2026 12:11:03 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6CF40606A323 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=proxmox.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proxmox.com X-Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 5205B43210; Wed, 28 Oct 2026 13:11:01 +0100 (CET) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-B4-Tracking: v=1; b=H4sIAEPm4WoC/yWMQQ6CMBAAv0L2bBO6qKF+xRAiZZH1sG26RUkIf 6fqcTKZ2UApMSncqg0SvVk5SAF7qsDPD3mS4bEwYI1XW2NrOPZC2QeZep3Dx5wvLbnBugYbB6W KiSZef8c7cExhyYRGaM3Q/bUuw4t8/l5h3w9bK1+vggAAAA== X-Change-ID: 20261028-ip_netconf_show-458e9b193239 X-Cc: dsahern@kernel.org, Gabriel Goller <g.goller@proxmox.com> X-Mailer: b4 0.17-dev X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1793189460681