Skip to content

bsd: add IN6_IFF_* and SIOCGIFAFLAG_IN6 on apple and freebsd#5239

Open
sbogomolov wants to merge 1 commit into
rust-lang:mainfrom
sbogomolov:bsd-in6-ifflags
Open

bsd: add IN6_IFF_* and SIOCGIFAFLAG_IN6 on apple and freebsd#5239
sbogomolov wants to merge 1 commit into
rust-lang:mainfrom
sbogomolov:bsd-in6-ifflags

Conversation

@sbogomolov

Copy link
Copy Markdown
Contributor

Description

Add the IN6_IFF_* address flags and the SIOCGIFAFLAG_IN6 ioctl from
netinet6/in6_var.h on Apple and FreeBSD. The flag sets differ a bit: Apple
defines DYNAMIC, OPTIMISTIC, SECURED, CLAT46, and NOPFX that FreeBSD
doesn't, and FreeBSD has PREFER_SOURCE.

Sources

Apple IN6_IFF_* / SIOCGIFAFLAG_IN6 (netinet6/in6_var.h):

FreeBSD IN6_IFF_* / SIOCGIFAFLAG_IN6 (netinet6/in6_var.h):

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 S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jul 1, 2026
@rustbot

rustbot commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants