From nobody Mon Mar 13 08:02:27 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PZpzR4v8Fz3xM4L; Mon, 13 Mar 2023 08:02:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PZpzR4VGXz4NqQ; Mon, 13 Mar 2023 08:02:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678694547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JGGrKzfPxiW9Eqt2weuKcp3TFEqq71Ja8vRCLWiYN3A=; b=GexlbW0HvKHV8V7DCM+9FA8J0HbYbtbHKDpGNA/iqPP9AA4BiOJYi3JdoZ8MRUubASuDKX 33pxB5CAQF50sfn/SeAFD8CwseRsyXpMgygCEQj8GoP1gHEIsPNo8Inmp0i2h+envLoUwQ sVIHb/f+jYE7cFuh5xyuDEPtZ1bzY7YUePcjJ4MA98u8sog5RwCA4CDaPy+s+0/ZglAbYZ DDladNC897Qcm4T/U2O6kcF2L0XWYJNnCjiTsmF0Vb40laP2KaALGosflP1rcfiBoVrNn1 ciBwNtaiB7glRVb/c99CJC99a/met1pJ8c3Hfa14Xs1Qi3IoaYo2Zh+7ofrNdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678694547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JGGrKzfPxiW9Eqt2weuKcp3TFEqq71Ja8vRCLWiYN3A=; b=GvM2dtcXwPR99NenlVRggM6Eq684GS4kVljChCErO3A7zwAKxTq56/4djQI01bKhX2QA0l jwRg+APQNkO67HvmS3ePDAR5b7jxNkhrGd9WWPN/QN+dtRCu6QCkss1eatWMi2/wlVV8B7 DlG/Pa6IimFpmjZIjT/Y4HUinP355Ngar3RI6WAuRbHyQdrMseGtueTNjNL6f2kbj+R/LM VwKINnLqitCVgUd29jyTI+WAtCWfKE+QMbSzHmT6jR7UDDRPUYYmnrvHoroeymbmHybMYZ MtkIumJRQwZ13skqnDdxiCe01OI5adrRf76+VAU8XzJnycO9OmA3IPSNlc2O1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678694547; a=rsa-sha256; cv=none; b=i6ALF/UJ+z8JrxknxSSqYi7wgNjPIP00+YfjKv9VZytvLeAlOJ6AEeFDfM0pWlcJFHMW/l z/kTD21dYkLVJmfveNylVDugNiVPw7k65bRVhPqHoYNPJrBq5sYdIvJ+nNZZJvaaBT5qVV Z21bHBOjm0R2uFqxZJtjBu/MC8/020rKSUuB03+2TDzyJV9IDSJx86SvaAAzaXNZFJ5Ij7 syuj7iZL5XGI2P48E5ZhAh2Q2mrckXcuu30pM4DPFgsU2dE4dqsoUo17NX6LVxI2Lte6sx TLLjdQ2V0T7feQg60zZmDYFB/3abOnq4+hy/3oDcISW7ydJjyTsZM+JCmHYJtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PZpzR3Z6DzlYY; Mon, 13 Mar 2023 08:02:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32D82RSp068514; Mon, 13 Mar 2023 08:02:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32D82RjC068513; Mon, 13 Mar 2023 08:02:27 GMT (envelope-from git) Date: Mon, 13 Mar 2023 08:02:27 GMT Message-Id: <202303130802.32D82RjC068513@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: 43a51b8bfdf0 - stable/13 - route(8): Add an example how to print the routing tables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 43a51b8bfdf004236a7c7f980c5e29c07b208de4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by gbe: URL: https://cgit.FreeBSD.org/src/commit/?id=43a51b8bfdf004236a7c7f980c5e29c07b208de4 commit 43a51b8bfdf004236a7c7f980c5e29c07b208de4 Author: Gordon Bergling AuthorDate: 2021-04-13 04:44:04 +0000 Commit: Gordon Bergling CommitDate: 2023-03-13 08:01:24 +0000 route(8): Add an example how to print the routing tables The manual page currently doesn't show an example how to print the routing table, so add one and .Xr netstat while here. PR: 231579 Reported by: Pekka Järvinen Reviewed by: debdrup Differential Revision: https://reviews.freebsd.org/D29702 (cherry picked from commit bc54f5f1cd5c01aa5f941234034839fb0b8f54ed) --- sbin/route/route.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sbin/route/route.8 b/sbin/route/route.8 index 6f34795ce883..c353bfb73d62 100644 --- a/sbin/route/route.8 +++ b/sbin/route/route.8 @@ -28,7 +28,7 @@ .\" @(#)route.8 8.3 (Berkeley) 3/19/94 .\" $FreeBSD$ .\" -.Dd January 9, 2019 +.Dd April 11, 2021 .Dt ROUTE 8 .Os .Sh NAME @@ -453,6 +453,10 @@ Delete a static route from the routing table: Remove all routes from the routing table: .Pp .Dl route flush +.Pp +List all routing tables: +.Pp +.Dl netstat -r .Sh DIAGNOSTICS .Bl -diag .It "add [host \&| network ] %s: gateway %s flags %x" @@ -493,6 +497,7 @@ The next-hop gateway should be reachable through a different route. .El .Sh SEE ALSO .\".Xr esis 4 , +.Xr netstat 1 , .Xr netintro 4 , .Xr route 4 , .Xr arp 8 ,