Skip to content

freebsd: add rt_msghdr and rt_metrics - #5367

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
sbogomolov:freebsd-rt-msghdr
Aug 4, 2026
Merged

freebsd: add rt_msghdr and rt_metrics#5367
tgross35 merged 1 commit into
rust-lang:mainfrom
sbogomolov:freebsd-rt-msghdr

Conversation

@sbogomolov

Copy link
Copy Markdown
Contributor

Description

Add rt_msghdr and rt_metrics for the PF_ROUTE socket on FreeBSD; libc
has them for Apple only. The RTM_*/RTA_* constants already exist. Field
set follows FreeBSD 13–15 (rmx_nhidx + two filler words); CURRENT renames
one filler slot to rmx_metric, same layout.

Sources

FreeBSD rt_metrics / rt_msghdr (net/route.h, releng/14.4):

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are included
  • Tested locally (cd libc-test && cargo test --target mytarget)

@rustbot label +stable-nominated

@rustbot rustbot added O-bsd O-freebsd S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 4, 2026
Comment thread src/new/freebsd/net/route.rs Outdated
@sbogomolov
sbogomolov requested a review from tgross35 August 4, 2026 10:36

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tgross35
tgross35 enabled auto-merge August 4, 2026 10:45
@tgross35
tgross35 added this pull request to the merge queue Aug 4, 2026
Merged via the queue into rust-lang:main with commit 9e26f03 Aug 4, 2026
57 checks passed
@sbogomolov
sbogomolov deleted the freebsd-rt-msghdr branch August 4, 2026 11:04
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
(backport <rust-lang#5367>)
(cherry picked from commit 9e26f03)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
(backport <rust-lang#5367>)
(cherry picked from commit 9e26f03)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
(backport <rust-lang#5367>)
(cherry picked from commit 9e26f03)
@tgross35 tgross35 mentioned this pull request Aug 31, 2026
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 31, 2026
tgross35 pushed a commit to dybucc/libc that referenced this pull request Aug 31, 2026
(backport <rust-lang#5367>)
(cherry picked from commit 9e26f03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-bsd O-freebsd stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants