[Midnightbsd-cvs] src [7354] trunk/sys/sys/socket.h: add space for third party vendors to add socket options

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Nov 1 14:02:09 EST 2015


Revision: 7354
          http://svnweb.midnightbsd.org/src/?rev=7354
Author:   laffer1
Date:     2015-11-01 14:02:08 -0500 (Sun, 01 Nov 2015)
Log Message:
-----------
add space for third party vendors to add socket options

Modified Paths:
--------------
    trunk/sys/sys/socket.h

Modified: trunk/sys/sys/socket.h
===================================================================
--- trunk/sys/sys/socket.h	2015-10-18 01:30:42 UTC (rev 7353)
+++ trunk/sys/sys/socket.h	2015-11-01 19:02:08 UTC (rev 7354)
@@ -143,6 +143,15 @@
 #endif
 
 /*
+ * Space reserved for new socket options added by third-party vendors.
+ * This range applies to all socket option levels.  New socket options
+ * in MidnightBSD should always use an option value less than SO_VENDOR.
+ */
+#if __BSD_VISIBLE
+#define	SO_VENDOR	0x80000000
+#endif
+
+/*
  * Structure used for manipulating linger option.
  */
 struct linger {



More information about the Midnightbsd-cvs mailing list