Article View: linux.kernel.netdev
Article #10944[PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword
From: Prijesh Patel
Date: Wed, 04 Nov 2026 12:17
Date: Wed, 04 Nov 2026 12:17
72 lines
12576 bytes
12576 bytes
Document the `protocol PROTO` keyword, which tags a neighbour entry
with its origin (e.g. static, boot, dhcp, or a routing daemon's own
protocol id) on `ip neigh add/change/replace/delete`, and filters
entries by that origin on `ip neigh show/flush`, including the
special `all` value. Supported since 6b83edc0 ("neighbor: Add
support for protocol attribute").
Signed-off-by: Prijesh Patel <prijeshpatel.dev@gmail.com>
Assisted-by: Claude:claude-sonnet-5
---
man/man8/ip-neighbour.8 | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/man/man8/ip-neighbour.8 b/man/man8/ip-neighbour.8
index 1f890c0d..4784faff 100644
--- a/man/man8/ip-neighbour.8
+++ b/man/man8/ip-neighbour.8
@@ -28,7 +28,9 @@ ip-neighbour \- neighbour/arp tables management.
.BR use " ] [ "
.BR managed " ] [ "
.BR extern_learn " ] [ "
-.BR extern_valid " ]"
+.BR extern_valid " ] [ "
+.B protocol
+.IR PROTO " ]"
.ti -8
.BR "ip neigh" " { " show " | " flush " } [ " proxy " ] [ " to
@@ -39,7 +41,9 @@ ip-neighbour \- neighbour/arp tables management.
.IR STATE " ] [ "
.B vrf
.IR NAME " ] ["
-.BR nomaster " ]"
+.BR nomaster " ] [ "
+.B protocol
+.IR PROTO " ]"
.ti -8
.B ip neigh get
@@ -123,6 +127,14 @@ will not remove or invalidate the entry, but it can probe the entry and notify
user space when the entry becomes reachable. The kernel will return the entry
to stale state if it did not receive a confirmation after probing the entry.
+.TP
+.BI protocol " PROTO"
+the origin of this neighbour entry. The value can be a number or a
+string from
+.IR /etc/iproute2/rt_protos ,
+e.g.
+.BR static ", " boot ", or " dhcp.
+
.TP
.BI lladdr " LLADDRESS"
the link layer address of the neighbour.
@@ -229,6 +241,14 @@ list neighbour proxies.
.B unused
only list neighbours which are not currently in use.
+.TP
+.BI protocol " PROTO"
+only list neighbour entries with the given origin protocol. The special
+value
+.B all
+matches entries with any protocol, including those with no protocol
+attribute set.
+
.TP
.BI nud " STATE"
only list neighbour entries in this state.
--
2.56.0
Technical Details
Message-ID:
<20261104121702.56526-1-prijeshpatel.dev@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-356410-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-356410-linux-kernel-netdev=dewy.ru
From: prijeshpatel.dev@gmail.com (Prijesh Patel)
Newsgroups: linux.kernel.netdev
Subject: [PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword
Date: Wed, 4 Nov 2026 17:47:02 +0530
Organization: Usenet Network
Message-ID: <20261104121702.56526-1-prijeshpatel.dev@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3386804"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VrPtV/e+dva/TC33P7UmvoxExx8= sha256:84LV5R2mK6Cv+CHNYw3/zCLbdvDjTV88MF8UhdUW1OU=
sha1:2rkcMDDdFmkl5IXl/wvSYdx5z/w= sha256:Uux/qO7Ch5EyZE1NZH4UxdGlvG3hpo1wRtTuGNFmmC0=
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 4A5A3112BB3; Wed, 4 Nov 2026 15:17:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, RCVD_IN_DNSWL_MED=-2.3, 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 8mO7CyS55qUO;
Wed, 4 Nov 2026 15:17:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356410-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 9E77F112BAE; Wed, 4 Nov 2026 15:17:38 +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 7C73C2CEC8; Wed, 4 Nov 2026 12:17:28 +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=1793794646;
b=USvz+7wJCxG2KWzmGRX5VffKLxqbgWCnqNGYJVAwmraDesZbh71Uc6TZ8OnnLLCY6rup
rSJtMioedcoCMq6pi4MQT4DhXHLCNbiOCfBYCckcoAdRLqglVnzYqiB0RrfAGivHnoINE
79WOiN1QaFYpEelFDcm4iBADQJeJoSs/Ljs+u3gCSZExSjx1RlVmTN7AtYSN5rYM2c/UJ
+P8xC+43ZCzXoZGtqpm+NZ+337xKrg14BZOtsDOOAeL8gy2N97ZLxhJFGwxSzqn9nsuI6
BMO1V6Lbb4+5RhUfe4554+ute48WWiNK6XCVRl0sQymWTTw0GyS+i7ZgzefWoH3da9g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793794646;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=GeF5kqhjYg76FiDQFTLk3CgPjL/qABFp98p09W1WKJA=;
b=y2OtMflBc8l9+cRwQ4Caexeivnkr/J87PpEjzxFELYk/73l+owRqcqX0lzFioTMEyi1n
oPHm7tVdN5BDCxf2mQVjLMXDZCzv5iqHBnXY0+5KH0UHVhZtzUAx+O9MaB+51ekgZhbZD
yJN2nWo9GsIoSrBE3bmI3b+Wh2txDt9T5a0HvnTj2/k/RlwWsGYLxEHwZ/tnu9z/tMp9r
repM6xjKgupm2LzhERCqStupP9RvfwXqmBtDN4/SAn2XvVZpOqIZUpt/daPOrys57Exkp
Eiko+MP5ZjvtXe2x38VFIH3JiMc5Q2bg2DSWnSJKHkZ2IaW8eaJJjjmuKR4MiC/V1/A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZaoYLiYK;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 53E0E606A32E;
Wed, 4 Nov 2026 12:17:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZaoYLiYK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.172
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793794645;
b=Sl47GfduBKP+OiNahIPM8DMk9+ejXpiTs2L2c+elWNIjVfJypmb4JGqu2RarwhTvaYaV
J07gMRsbmAsOe/nOr8N3GlbD3UvdfimVrIshK4LivzoAxKyi92nIKTzc2Jbzy+lkLb8Zz
uCP1MfdIGCuWwAQf5cpM0yKxWrJLC1T72/RUuB/1IHwYGPZZz2qJh4cmCZ8mk6X77Bv60
fdwuXcXhT1KlP7sML237PI84zW6g7mZ9aQwLSj1Rkg9+59PefGuUD5ahCUV0AHct0Iok1
1HGGGwOKXLzBw9/8NUt3jCkvlzJetMmcjV6pF6Du1+8XzkxSq7N2E4XHccYSZqsRPzw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793794645;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=GeF5kqhjYg76FiDQFTLk3CgPjL/qABFp98p09W1WKJA=;
b=VF0C90lnyw8ZG0aUKCja/oxYsru8vtPa/DmgUPab9a4fWoKO2DYN9CGsSSPqZZm2iplg
xlmXdDg0cxU9HQE47TkiGJ2p3K3lM8pvRYPusDhtfLdzUYLLzsMWpk9pwmzRJ8JYg0GHG
WaCkaojBc87C4+k5H8VKnS1g3vkCjJjOQY5gUbfS82eLctCRR3aZM+6o4IVqnLyjvxirW
ZfsK1iiNhvE5IPcAItxLRCJdyVq4s7oz40rZk2ryweHqhZDz4s6njUgtHhOGz8M2VhHLl
bbY+cElTR31/CLf2pj1w2yIRwFP0PUG4Wzy8evftIKpoPj+1XGqcfXmunTkvt3QK7kg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZaoYLiYK;
arc=none smtp.remote-ip=74.125.82.172
X-Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A187606A31B
for <netdev@vger.kernel.org>; Wed, 4 Nov 2026 12:17:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1A187606A31B
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-dy1-f172.google.com with SMTP id 5a478bee46e88-369f33df08eso1041296eec.0
for <netdev@vger.kernel.org>; Wed, 04 Nov 2026 04:17:24 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793794644; x=1794399444; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=GeF5kqhjYg76FiDQFTLk3CgPjL/qABFp98p09W1WKJA=;
b=ZaoYLiYK3a3zD75MckhXgtoas0jInCoU58ox9eowCZPdk0R/ZyTQbO+ZJlhyHTrhRJ
vHYD6pqDp8kj8acZECXfxBnz45Z/+9cI88QzZBgobnkEQEX9iGzPae4kIj/cszkNG/LI
00qbw3o/tQtonIgDSnlH/ey4mAuckJwUt9Vq6DzUSqjMe5SQE/cPJ6e/JC9VFta36QwH
F8Q9L/DKXwncU3gtMSSJ+Ny0KUW5+L9Vm2pDIKMiJr/05FUbaAXFGAwm780WCzb0FvSt
r2Z+8FajrfXTdGtYHkCgE6BPeZLNdFok4FsebzXMpjHMYXz7JlTAKOoAPD56jSswrb7l
L2ug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793794644; x=1794399444;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=GeF5kqhjYg76FiDQFTLk3CgPjL/qABFp98p09W1WKJA=;
b=ABjjjTnUBp4Qv0goe1uEKLU5JM+ZM203DeBL2+wkxO0ETyoFWan4AAUI3Pxh61Nqh4
qZ32Y6yDEd8YMu/eS2R1oBaMrIanUjvcP/ELW55NYKIDpXK4C1Cm7EbKrGryKrC2Db2l
KJg+zwYElZ4O082MjBoj9v5VvD2ja/Oro+3mDc1UQAWZPGRse+qHo9qjuLwCEVctJpRm
ilI9nvRIHRSGFMQwxFWLWeRK171PIp9Y58Bp5gzj4E3YKcNLdqtzvMUA3LPvR6onCVOm
HHOAtbmI7exI/EymPgqV2GVFUtjuus9HnyYzHajADTVK25zkyutuveb2g0dVU0clrbRF
nI5w==
X-Gm-Message-State: APuU4Z8gh1Ez7YV5m4JmCLsW6I9yHg/C78Qvj46tnb1iIa0+a5rOdK1D
Zyfu3gDcjicIU2scZTkWbt5jhtxojg1kBwM7t/oUntCob43aef6BgKd6+YHuug==
X-Gm-Gg: AYBFou06GqrSwq4LlhEgEZaB5x5t+tGsDE+QpcX9YqjJvsz0vvyjPB1aWUI4y8WO/fA
0CxT3t7MvpiGMAycg3TMZuAFSEDPu4v8hOglHCizoYjOtUmuuvpZLDF74Afi2kW/tOykpSOt0AE
H+G0S+p1hrlxGHfwokVVKtByt/GGNpX14ZMfZJb0RDWs8KlRmk8pDhdaahgISNp1vTNJ8y8t56b
s1Ap5+Os9aXZuVl+X/gP4Gp5s1OXOFtoo7yyaUQhzBBGD26dbJxsHaigtkvJVKNVmyRZrqFJUM7
UDw/y+YZjHVZe8/bJSX4YbOtRsJmbww38pISZ4U4u2DLF0RnrdcEkG1FMIlzJbsdjNjo/g4TRJe
peFC/IiD5fiVKJhNNPNANRtyAQGjtf4Ym5nM4AcfNzF4lxrP/yaQ/b9TG51UmErFdnjBqAg+Gck
0fT1mEFBW9otGRykYx/vS7u7+otqDv1by1V1GNqdOEr82YHTL7VATxDqg/9yGiAP+QmBEog6QjE
rTok/a7GII5WCPLwJsB6eweEp79oVw5wsAApRGgkwGmdBk/ghOmZIzh3VcztISO0yrY3p2v9i6H
qwXVkM4Fk2Jz6xYEga4Ss+PBrAk8HLnwQ8hJ8oAhhjbpd1rOIVOesrtdWgB1npW23D4=
X-Received: by 2002:a05:7301:fc81:b0:36c:d29e:668f with SMTP id 5a478bee46e88-36cd29e694cmr2469548eec.6.1793794643860;
Wed, 04 Nov 2026 04:17:23 -0800 (PST)
X-Received: from prpatel-thinkpadp1gen7.rmtin.csb ([103.158.138.158])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-36ca38d46fcsm7438355eec.13.2026.11.04.04.17.21
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 04 Nov 2026 04:17:23 -0800 (PST)
X-Cc: dsahern@kernel.org,
stephen@networkplumber.org,
prpatel@redhat.com,
Prijesh Patel <prijeshpatel.dev@gmail.com>
X-Mailer: git-send-email 2.56.0
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