git: 95b47ba62994 - main - netlink: export nextop group kernel index when dumping multipath route.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Jan 2023 15:39:39 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=95b47ba6299401b487f29a05ac859629ee7d4f0b commit 95b47ba6299401b487f29a05ac859629ee7d4f0b Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-01-28 15:37:58 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> 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);