diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-07-28 22:19:10 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-07-28 22:19:10 +0000 |
commit | 62d5ae51fde32499c14a5864e0651e952b2c2de9 (patch) | |
tree | 8ce98d359b863881e6de42a60581983446ccf662 /share/man | |
parent | 3effa157978aeb21ff28720a9e4dabc7c600c07e (diff) |
In the kernel exist functions to print routes, but they were not
accessible from ddb. Implement "show all routes" to print routing
tables, and "show route 0xfffffd807e9b0000" for a single route
entry. Note that the rtable id is not part of a route entry, so
it makes no sense to print it there.
OK deraadt@
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man4/ddb.4 | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index 5f8a27db355..52decfcd4a6 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ddb.4,v 1.101 2022/03/31 17:27:20 naddy Exp $ +.\" $OpenBSD: ddb.4,v 1.102 2022/07/28 22:19:09 bluhm Exp $ .\" $NetBSD: ddb.4,v 1.5 1994/11/30 16:22:09 jtc Exp $ .\" .\" Mach Operating System @@ -25,7 +25,7 @@ .\" any improvements or extensions that they make and grant Carnegie Mellon .\" the rights to redistribute these changes. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: July 28 2022 $ .Dt DDB 4 .Os .Sh NAME @@ -791,6 +791,12 @@ Note: The modifier is not supported on every machine, in which case incorrect information may be displayed. .\" -------------------- +.It Ic show route Ar addr +Prints the +.Li struct rtentry +at +.Ar addr . +.\" -------------------- .It Ic show socket Ar addr Prints the .Li struct socket @@ -954,6 +960,26 @@ See the command for more information. .El .\" -------------------- +.It Xo +.Ic show all routes +.Op Cm /iI +.Op Ar rtableid +.Op Ic \&, Ns Ar count +.Xc +Show internet routing tables. +Default for +.Ar rtableid +is 0 and +.Ar count +is 1. +.Pp +.Bl -tag -width foo -compact +.It Cm /i +Restrict to AF_INET. +.It Cm /I +Restrict to AF_INET6. +.El +.\" -------------------- .It Ic show all tdbs Op Cm /f Display information about all IPsec SAs in the system. .Pp |