[Midnightbsd-cvs] src [9325] trunk/sys/netinet/in.h: Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE >= 201112
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Mar 2 19:22:38 EST 2017
Revision: 9325
http://svnweb.midnightbsd.org/src/?rev=9325
Author: laffer1
Date: 2017-03-02 19:22:38 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE >= 201112
since POSIX 2001 states that it shall be defined.
Modified Paths:
--------------
trunk/sys/netinet/in.h
Modified: trunk/sys/netinet/in.h
===================================================================
--- trunk/sys/netinet/in.h 2017-03-03 00:21:57 UTC (rev 9324)
+++ trunk/sys/netinet/in.h 2017-03-03 00:22:38 UTC (rev 9325)
@@ -124,6 +124,7 @@
#endif /* !_KERNEL && __BSD_VISIBLE */
#if __POSIX_VISIBLE >= 200112
+#define IPPROTO_IPV6 41 /* IP6 header */
#define IPPROTO_RAW 255 /* raw IP packet */
#define INET_ADDRSTRLEN 16
#endif
@@ -175,7 +176,6 @@
#define IPPROTO_CMTP 38 /* Control Message Transport */
#define IPPROTO_TPXX 39 /* TP++ Transport */
#define IPPROTO_IL 40 /* IL transport protocol */
-#define IPPROTO_IPV6 41 /* IP6 header */
#define IPPROTO_SDRP 42 /* Source Demand Routing */
#define IPPROTO_ROUTING 43 /* IP6 routing header */
#define IPPROTO_FRAGMENT 44 /* IP6 fragmentation header */
More information about the Midnightbsd-cvs
mailing list