Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146168997
D44979.1779404991.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
652 B
Referenced Files
None
Subscribers
None
D44979.1779404991.diff
View Options
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -100,7 +100,13 @@
};
#define s6_addr __u6_addr.__u6_addr8
-#if defined(_KERNEL) || defined(_STANDALONE) /* XXX nonstandard */
+#if __BSD_VISIBLE
+/*
+ * s6_addr is the only in6_addr element specified in RFCs 2553 and 3493,
+ * also in POSIX 1003.1-2017. The following three definitions were not
+ * exposed to user programs in FreeBSD before 14.1, or in other BSDs,
+ * and are thus less portable than s6_addr.
+ */
#define s6_addr8 __u6_addr.__u6_addr8
#define s6_addr16 __u6_addr.__u6_addr16
#define s6_addr32 __u6_addr.__u6_addr32
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 11:09 PM (22 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28757873
Default Alt Text
D44979.1779404991.diff (652 B)
Attached To
Mode
D44979: in6.h: expose s6_addr* definitions to user level
Attached
Detach File
Event Timeline
Log In to Comment