From nobody Fri May 15 21:31:04 2026 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 4gHL3f1JP8z6f1NL for ; Fri, 15 May 2026 21:31:10 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gHL3f021Tz4G2K for ; Fri, 15 May 2026 21:31:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778880670; 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=7FJDbbmbjOhHlhbA0HXs33eud9x39WT20b37DHAwGUg=; b=Sy3RPLQSfR31vD7qKsTUl9dAfkKIC8pS3VWepns1NRANZNVlh4PNeiHnVqryRD40sZfTgk tw2ppahuQyeAXMBTXw836pdgdFvYyJZyFEbVk+cTbiP1MPH9OBXc86zbcz/WQBZsluCk3K 3jcMafyXrLMi0S447uHh9z+CBoDe5SvanV3rJFTF0L7YrzAvbUcrLHgGtj0kYHQMKnArbG YfrbQ1QRq81C/Gaj7VCVJCBS4vViVZldU1fHA27iD8DY2B+9LyW2AuDDnvUNRY0DoebVYs tN77arV0YD2PcTr3Uc4UVzhQtQ/ODd+peXj14UbienVqgNnFfFrMBamc74FG7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778880670; a=rsa-sha256; cv=none; b=h7XLDwWHkm1XXdVVNXJDsxysn5pZTMKnUbLT5ucqpujx5WyuzI3ghyhyAYxpLI4V/C7CET xGHLe7zxK41SGkb3a7rWyNbVAj+d+u3hvsIWavzSq2FjRdftQEFYwPmS/Hz4jnh3BOPRX7 vw6B6kybGi3taRgoEtVHipBvs01so/2qgSrKajYT4+ulXAHOfp3HxXJqPIgs+FIo7z14h+ zobfVofG41va3MRjudW2+RTiVyEJrtjNZl5KhZ+JrSY/Zkf2p1hCY7Hzf/SE0iabDLGdct 0hzua8S1ruqiE8euZ3c0rGI9DThKFDfvdUOanP1aAj4r9a10g9IKt6AosF/R8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778880670; 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=7FJDbbmbjOhHlhbA0HXs33eud9x39WT20b37DHAwGUg=; b=LUUKPRWEr0LkezOwfPTbdTKJ1BvKzSM638HTYqqQ5Wvd2/IcFUOLHyqV2ZvT/6Vy2DJ22W J/G80zhb7sBbUtqxhn+2xfQKH19NkNGNrU2EOE16rjTeMa8AI3ofxfHpE4CqY2pR84OG8z Lk/ss9dSpexIqvNJn0Pgh5L1QV5vbhEBoBUZ6PINmvOpqACEJePkRqCu2yH0WtTzEVIJ8O eX21elznYtPDy1GdmTCgKQoMSdqV4viDBjj2qdZAYsxpnk2Jpn4py5A25Lf+FYjyrxQIAc 05Ks6pjbvdVg1FG3T2jrYCwP8CoZMu5QzojVB3i0ykmYXHlz5EJCY2mAQ5yTow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gHL3d6gFTz9Pb for ; Fri, 15 May 2026 21:31:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3eb7b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 15 May 2026 21:31:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 355989b21712 - main - route.8: Describe weight modifier 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 355989b21712cbb7173cbec4a036c541e6f08c0e Auto-Submitted: auto-generated Date: Fri, 15 May 2026 21:31:04 +0000 Message-Id: <6a079098.3eb7b.7273e83a@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=355989b21712cbb7173cbec4a036c541e6f08c0e commit 355989b21712cbb7173cbec4a036c541e6f08c0e Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-04-14 07:49:29 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-05-15 21:29:49 +0000 route.8: Describe weight modifier Describe `-weight` argument in the route manual. Reviewed by: glebius, ziaee Differential Revision: https://reviews.freebsd.org/D56246 --- sbin/route/route.8 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sbin/route/route.8 b/sbin/route/route.8 index 572781ef59c8..5cb16120c8d8 100644 --- a/sbin/route/route.8 +++ b/sbin/route/route.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 12, 2024 +.Dd May 16, 2026 .Dt ROUTE 8 .Os .Sh NAME @@ -297,6 +297,17 @@ Note that the qualifier works only for .Dv AF_INET6 address family. .Pp +For +.Li ECMP +routes, the +.Fl weight +modifier can be used to influence nexthop selection. +For example, a destination with two nexthops defined as +.Dq Fl gateway Ar 3fff::1 Fl weight Ar 100 +and +.Dq Fl gateway Ar 3fff::2 Fl weight Ar 200 +will make the nexthop 3fff::2 twice as likely to be chosen as 3fff::1. +.Pp Routes have associated flags which influence operation of the protocols when sending to destinations matched by the routes. These flags may be set (or sometimes cleared)