aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-02-01 15:32:20 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-02-01 15:32:20 +0000
commit0d25fab44dcd72f465119281f1c8d1f797446965 (patch)
treeacca989c18406bfd6330908f902fc1b78a6933c6 /sys/sys/un.h
parentacd8b774569c43b5bc486b50b1ad6b1821579b15 (diff)
downloadsrc-0d25fab44dcd72f465119281f1c8d1f797446965.tar.gz
src-0d25fab44dcd72f465119281f1c8d1f797446965.zip
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
Notes
Notes: svn path=/head/; revision=246210
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 6ab84748bbdf..7837e76ee709 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 */