Bug 278623 - in6.h should expose s6_addr* fields to user level
Summary: in6.h should expose s6_addr* fields to user level
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mike Karels
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-27 19:48 UTC by Mike Karels
Modified: 2024-05-02 15:32 UTC (History)
2 users (show)

See Also:
antoine: exp-run+


Attachments
proposed patch (709 bytes, patch)
2024-04-27 19:48 UTC, Mike Karels
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Karels freebsd_committer freebsd_triage 2024-04-27 19:48:42 UTC
Created attachment 250274 [details]
proposed patch

The netinet6/in6.h header defines accessors for the in6_addr struct, s6_addr{8,16,32}, but only if _KERNEL or _STANDALONE are defined.  They are used by some user-level programs from Linux, which exposes them by default.  They should be exposed if __BSD_VISIBLE is defined, i.e. not in a strict standards-compliant environment.
Comment 1 Mike Karels freebsd_committer freebsd_triage 2024-04-27 19:50:46 UTC
requesting exp-run
Comment 2 Antoine Brodin freebsd_committer freebsd_triage 2024-05-02 07:00:32 UTC
Exp-run seems fine
Comment 3 Mike Karels freebsd_committer freebsd_triage 2024-05-02 15:32:23 UTC
The change was reviewed on https://reviews.freebsd.org/D44979, and committed to main as eb3dbf2dbe22 - main - in6.h: expose s6_addr* definitions to user level.  Closing this bug.