Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154798379
D44979.id137737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D44979.id137737.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,11 +100,15 @@
};
#define s6_addr __u6_addr.__u6_addr8
-#if defined(_KERNEL) || defined(_STANDALONE) /* XXX nonstandard */
+/*
+ * 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
-#endif
#define INET6_ADDRSTRLEN 46
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 11:30 AM (7 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32505122
Default Alt Text
D44979.id137737.diff (675 B)
Attached To
Mode
D44979: in6.h: expose s6_addr* definitions to user level
Attached
Detach File
Event Timeline
Log In to Comment