From nobody Sat Jan 28 15:39:39 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 4P3zCH69GLz3b835; Sat, 28 Jan 2023 15:39:39 +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 4P3zCH5cW4z3xT3; Sat, 28 Jan 2023 15:39:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674920379; 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=GaBlmmwqKVtf8d3PqpBbXiNewyJRuCNHUqDt+2RHvIU=; b=lqG8C2vF8FZREzz1nkX5h/t5lhCzxd4MipRya8yvf7RaWl1bo9rQDdO0ue6ZFVfLj/g3xC R8toZjYO3W2lotRrP/fEXJkp5iNaThqP7K3qsUdUkmRm5o+T0MeNzXuAkQDWeL+pktvLll f7qwhBT6DEUXZjfy3X4ZO5bkezwUYnTe4PuwSNHgSPZMJpY0FCHd5yw9rIm92Tj1jNNiW+ Lwroek55n4NjvvPnYp+WIWUPRD0rYf6QfhlFLayFd7Y/AwCgnHdffpxxkayoYJXehal5jU RO+poNobQ2VmEDupItglKf9XJ6MYGdhBJ7gM/xus8rUMp6RcQDTj6P9FvthaEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674920379; 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=GaBlmmwqKVtf8d3PqpBbXiNewyJRuCNHUqDt+2RHvIU=; b=aK3IKHf8iEH0WND5Fw8g8H9qY05hfluXavVLgb1fOOZBX3P1tygHkHPp/ir9onuVmneUom ppYNf1W2D0vaO22OgHTtAzgzz6OMCp/2dLGtALo78PzL31d7Aij067YHBXG5PONzmyvabq O2xK46MRzMpKnyxquBWyN1Brb6DdGsIKAIV1rn+9995OChpZJa/rLDJu+NO34nO4lV45yF k4+iQ2cuZGUufhjBIeaoVbSZMG9tHslOpTBkulZoPZ2MEpNz1clPIkgSLE3fvb9nzl+Kuh 9zHYALh3RDT2PD9+jTkVnFE2BCY5YuMKqD0b7NxMmIrCDvaznrudko9rHKNRVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674920379; a=rsa-sha256; cv=none; b=Yx1VzHXmG+yXtQO0/RGMj4pO9pI2kVh8gwrw6eWH9R9Z7fg8vkt1dvqKuaN1Xg0HTBcP3H ++wU1F+FTHUT2dOQwMxmATTUsI00GbA1dYALc/gVucBhNBlQuYZA78pUvL01qOz1yt1uqo odacxxD0RY49rR+YErJxNJjeu7NSQNnhVCVezhUJXoFJrkVtg5W/rZz1NES4NTgwNsrB7i KZaBNkWkCjAG6d0m0qPjTWgpBlK120mnXETqJOI+K1HxhgFR1ygL0UVWVO4Gpdn0yywsAZ Hne5WBfl2YMijIx9JdF2CyAi0P5FuDSDudKy0527KqPzBdrt+eTFEb1gbZMjqA== 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 4P3zCH4gP9ztm9; Sat, 28 Jan 2023 15:39:39 +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 30SFdd8V051593; Sat, 28 Jan 2023 15:39:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30SFddPn051592; Sat, 28 Jan 2023 15:39:39 GMT (envelope-from git) Date: Sat, 28 Jan 2023 15:39:39 GMT Message-Id: <202301281539.30SFddPn051592@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 95b47ba62994 - main - netlink: export nextop group kernel index when dumping multipath route. 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95b47ba6299401b487f29a05ac859629ee7d4f0b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=95b47ba6299401b487f29a05ac859629ee7d4f0b commit 95b47ba6299401b487f29a05ac859629ee7d4f0b Author: Alexander V. Chernikov AuthorDate: 2023-01-28 15:37:58 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-28 15:39:25 +0000 netlink: export nextop group kernel index when dumping multipath route. MFC after: 2 weeks --- sys/netlink/route/rt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netlink/route/rt.c b/sys/netlink/route/rt.c index 9854785d0ee8..5e7f00f28b0b 100644 --- a/sys/netlink/route/rt.c +++ b/sys/netlink/route/rt.c @@ -175,6 +175,7 @@ dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg * if (uidx != 0) nlattr_add_u32(nw, NL_RTA_NH_ID, uidx); + nlattr_add_u32(nw, NL_RTA_KNH_ID, nhgrp_get_idx(nhg)); nlattr_add_u32(nw, NL_RTA_RTFLAGS, base_rtflags); int off = nlattr_add_nested(nw, NL_RTA_MULTIPATH);