Skip to contentSkip to conversation

ip-route2: document uid parameter for route get

PATCH Applied Aman Sharma 2 participants 2 messages Sep 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip-route2: document uid parameter for route get

The 'ip route get' command accepts a 'uid NUMBER' parameter to simulate route selection as if sent by a specific user. This is useful for testing per-user routing policies.

Add documentation for this parameter in the 'ip route get' section of the man page.

---
 man/man8/ip-route.8.in | 4 ++++
 1 file changed, 4 insertions(+)
man/man8/ip-route.8.in +4 -0
index fd04432f..852e996e 100644
@@ -1368,6 +1368,10 @@ force the output device on which this packet will be routed.
 the firewall mark
 .RB ( "fwmark" )
 
+.TP
+.BI uid " NUMBER"
+the user ID as seen by the route lookup
+
 .TP
 .BI vrf " NAME"
 force the vrf device on which this packet will be routed.
Signature · 1 line
2.55.0
#1 lore raw
Quoted 8 lines · On Wed, 16 Sep 2026 16:27:59 +0530 Aman Sharma <[email protected]> wrote:

The 'ip route get' command accepts a 'uid NUMBER' parameter to simulate route selection as if sent by a specific user. This is useful for testing per-user routing policies.

Add documentation for this parameter in the 'ip route get' section of the man page.

Applied to iproute2 and added missing SYNOPSIS item as well.