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
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