[Midnightbsd-cvs] [MidnightBSD/src] 2446f4: in6.h: expose s6_addr* definitions to user level
Lucas Holt
noreply at github.com
Wed Dec 31 06:10:34 EST 2025
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: 2446f46badf1823068fdbaf1a604614f8521f2b3
https://github.com/MidnightBSD/src/commit/2446f46badf1823068fdbaf1a604614f8521f2b3
Author: Lucas Holt <luke at foolishgames.com>
Date: 2025-12-30 (Tue, 30 Dec 2025)
Changed paths:
M sys/netinet6/in6.h
Log Message:
-----------
in6.h: expose s6_addr* definitions to user level
The only element of of in6_addr that is specified in RFC 3493 or
in POSIX.1-2017 is s6_addr, implemented via a #define to a union
member. However, FreeBSD and other BSD systems have additional
definitions for the other union members, s6_addr{8,16,32} which
are defined for the kernel and loader. Some Linux applications
also use them, and they seem to be allowed by the RFC and POSIX.
Remove the current ifdefs, exposing the additional fields to user
level, and replace with #if __BSD_VISIBLE. Add an explanatory
comment expanding on the previous "nonstandard" comment.
Obtained from: FreeBSD 14 stable
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list