* [PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword
@ 2026-11-04 12:17 Prijesh Patel
2026-11-09 2:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Prijesh Patel @ 2026-11-04 12:17 UTC (permalink / raw)
To: netdev; +Cc: dsahern, stephen, prpatel, Prijesh Patel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword
2026-11-04 12:17 [PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword Prijesh Patel
@ 2026-11-09 2:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-11-09 2:00 UTC (permalink / raw)
To: Prijesh Patel; +Cc: netdev, dsahern, stephen, prpatel
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
On Wed, 4 Nov 2026 17:47:02 +0530 you wrote:
> 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").
>
> [...]
Here is the summary with links:
- [iproute2-next] man: ip-neighbour.8: document protocol keyword
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=d95f66508b32
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 2:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 12:17 [PATCH iproute2-next] man: ip-neighbour.8: document protocol keyword Prijesh Patel
2026-11-09 2:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox