summaryrefslogtreecommitdiffstats
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-02-01 15:32:20 +0000
committerjhb <jhb@FreeBSD.org>2013-02-01 15:32:20 +0000
commitb55183a894ce23691df0c9c6b6fec645a777d401 (patch)
treeacca989c18406bfd6330908f902fc1b78a6933c6 /sys/sys/un.h
parent8f6d8825cb9ab131ffe40749acc07d726f746b82 (diff)
downloadFreeBSD-src-b55183a894ce23691df0c9c6b6fec645a777d401.zip
FreeBSD-src-b55183a894ce23691df0c9c6b6fec645a777d401.tar.gz
Add placeholder constants to reserve a portion of the socket option
name space for use by downstream vendors to add custom options. MFC after: 2 weeks
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 6ab8474..7837e76 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -57,6 +57,9 @@ struct sockaddr_un {
#define LOCAL_CREDS 2 /* pass credentials to receiver */
#define LOCAL_CONNWAIT 4 /* connects block until accepted */
+/* Start of reserved space for third-party socket options. */
+#define LOCAL_VENDOR SO_VENDOR
+
#ifndef _KERNEL
/* actual length of an initialized sockaddr_un */
OpenPOWER on IntegriCloud