From nobody Fri May 15 21:31:04 2026 X-Original-To: dev-commits-src-main@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 4gHL3X6vMsz6f1C6 for ; Fri, 15 May 2026 21:31:04 +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 4gHL3X651fz4G8F for ; Fri, 15 May 2026 21:31:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778880664; 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=afV5JdUxUXkb0Qb8q8eKdKTNG5EWgtNdUbZ9BDmZWKCV6yWD7wKA/U4jRPEJ+FGdzxz2Bs o/UwORfT6oxIq82SI1VOj9Ja+CDLBKtNY6+CQZ0m12tE9SSXITZLdtC3jBiAaQuUos5HAo 7zdHRbuEt92qYXNzejxVFuhW5H/QkXqWYriHvSz0s9TN3l89G+G444SVenmXUjEstGyEA5 jnQb3935Lvn31RLDbwmwcvrYNk6SXdMcn9ahs1ipDxwFwS9CQg1R17/4iOdOPrJUxhPp1o /gJtpzl6A8TkPSa1BkvskUmhv+BmZbY18L4MgUtvlpeQr6p/ousYpDvXgrOn0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778880664; a=rsa-sha256; cv=none; b=gjinQCjXKfMGMTEG4BkY29tFAxIS5LeFEA/ZDIP5JwIqnx5q74KQRzZ6RGOtiCLiFZxPda iT91vpYUcg1TWbgfBBKfisX444HSoOYqIqN6aoqfhnoMYpdBXnWzpbdzekRT8mbVvvFb6q 0fGhub4kwP9JzQxDVkSGIsSNrR17xZFbO4WWjt6r+pqYFp4cxVtuk3PMdSapTXZU/LBnrS 6aMl8dtpFt4VkOlzJhEG7xPT72DEC0WmOsdGqtDvz21/j1eXB+Xn55ZJbbIvxkqs6O/o0u IrNfRkMUKJly2Ag/tXQ1K9yX7wWWYgzlgYf43deson6arzXyGOXwXCPsFEQSSA== 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=1778880664; 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=QzX2n7Cb93D67KOCiNJ/eEJDZp3fRr/QbJfl4oEDqf1Vr9T0FOM0DG2PmUXcSdHoJ1UBwl FPEAbCNMLODntrEwVpqcCi3UCXGcpMDNk9v+FeNXHPcC+aKUo3EfuyfvKzB7ur+Ra9381o ytkRR0Rzl2HZv9WExFNly2apHym+398JQq+Gf+x8/BDAPGDjHQa+NWVc2kQEcZ+LaTeGHD /9SPV6jbI0iD0T+PTWSDz6+PExe2o/nTRDbxigSfXH1jo/6iSsgFXt6MRuKc6L8nRX9fSm PD2FKM3tgOthnZGlnuxKY3tomGge26jXqoFNb7xWetIdTcmuAb7kyYFQ9Uf5dw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gHL3X5bKLz9K8 for ; Fri, 15 May 2026 21:31:04 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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)