From nobody Tue Mar 14 10:54:01 2023 X-Original-To: dev-commits-src-branches@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 4PbVkx2t3rz3y6nd; Tue, 14 Mar 2023 10:54:01 +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 4PbVkx2NMWz3jwc; Tue, 14 Mar 2023 10:54:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678791241; 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=myaGJtMGhLr5XwZbe9YNRzgJv2WytMWhjE4wNRC6EcM=; b=DZJlNcRolryzlaoKpWe9PUJRLgE0m6MyJB0HliibvH27mYFXUJI41IRy6MJlBTRHZFFXjk Sjx0/HxfWJafozMp3F1QJ+2+C2ogo9abUvrHB14KERaV1FZl+DN42KsIC3EvGdrZ9ZTLYc GMqbkc6Xp/NpANi04iCIVuPP6x1BF4zoWgNoDAendwqANrF5ZBt/HBtGGX34pIJeuDCqSz z0cKXdL4uHQZ4aJS8Z1jsaKapAnafkSFgTmSUWXA3BBo6RKK1TT6ETrWZL3Nj/FEoA9lOW EtdeA+c89aU+lzLhF+1ZLz37AtZ0MfNVaHaKJ/xBGKKl53NjHz75uvuDipvoug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678791241; 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=myaGJtMGhLr5XwZbe9YNRzgJv2WytMWhjE4wNRC6EcM=; b=FhuMFFb18M8hoW7ySzyAatvQMKRxq522UwhcVy9L14xUOAKumn0nFjdcE+6uTOnDZZzUpq JIS7JnPTWyocwl5NMFovC9986Zb19xNuHvSu2/r+CQRCoGqKFNJQRWzh4bRq8lG2vKylXb tK4zbxOLk6c9DqQllFpESlLbiHYrTv8PkMCWLrvJk5PaddXWtNiq3A7zkbA6Sq1FUjjeSB POTsX27us1K7rwP9tgmjT9S14WE8Jfhm/cX1bqOAEKFYEZ9v201oZ/hY4EvUu7rJ/OvWV6 2NAyLtlozPCkyUebJhlyptltk2P7SWxzDRmu3bhd+k240EhZBc6ppTnyoslAig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678791241; a=rsa-sha256; cv=none; b=PJ/6gz+y9MFLjuADKF6x3+beFgUx+iXzfd6cQazIz2hZLi680uN/bKg/HAEx62xvfp3TNO jDPWfyR4diSXAgzS+Ae7I+onS5O/1R5w32CwnT1isc3Ovw8a7Z5m8MK/jPDW42kZODCWjG ivTFBU+b8kPuT7n4HJY0LArScRaiodOqTCrPoVx75Z+/BkGtqzJ4CB5s8xGHKkJdrMY8li JRJ75JJiOMnokmxo2O1gOGbENo5+zpn2h0wVXD3jAE1MyHnCar5yrq/I9HAS6JM9t6kBiu hxuLPl2mCuvfviT247R/d2mbDccec9GK6R2SJ2kYH1GNE5rds1rgaBNg5+ECug== 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 4PbVkx1QNxzXWK; Tue, 14 Mar 2023 10:54:01 +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 32EAs1ZF015128; Tue, 14 Mar 2023 10:54:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32EAs14I015127; Tue, 14 Mar 2023 10:54:01 GMT (envelope-from git) Date: Tue, 14 Mar 2023 10:54:01 GMT Message-Id: <202303141054.32EAs14I015127@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: 5b99fbfb7289 - releng/13.2 - route(8): Add an example how to print the routing tables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 5b99fbfb72891a058838bf1485f88d8c5bb3e1e0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.2 has been updated by gbe: URL: https://cgit.FreeBSD.org/src/commit/?id=5b99fbfb72891a058838bf1485f88d8c5bb3e1e0 commit 5b99fbfb72891a058838bf1485f88d8c5bb3e1e0 Author: Gordon Bergling AuthorDate: 2021-04-13 04:44:04 +0000 Commit: Gordon Bergling CommitDate: 2023-03-14 10:49:16 +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 Approved by: re (cperciva) 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 ,