aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2005-04-13 00:01:46 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2005-04-13 00:01:46 +0000
commit6a2989fd54a932465e426a684b3b30961116a8c8 (patch)
treebf3b03a669ffc5fca7a19cabc8f07cd6408397d8 /sys/sys/un.h
parent87efd4d58a20aab03531bc03cc14da56642b4f5e (diff)
downloadsrc-6a2989fd54a932465e426a684b3b30961116a8c8.tar.gz
src-6a2989fd54a932465e426a684b3b30961116a8c8.zip
Implement unix(4) socket options LOCAL_CREDS and LOCAL_CONNWAIT.
- Add unp_addsockcred() (for LOCAL_CREDS). - Add an argument to unp_connect2() to differentiate between PRU_CONNECT and PRU_CONNECT2. (for LOCAL_CONNWAIT) Obtained from: NetBSD (with some changes)
Notes
Notes: svn path=/head/; revision=144978
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index e8caf35f8232..97aebb5be2e0 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -53,7 +53,9 @@ struct sockaddr_un {
#if __BSD_VISIBLE
/* Socket options. */
-#define LOCAL_PEERCRED 0x001 /* retrieve peer credentails */
+#define LOCAL_PEERCRED 0x001 /* retrieve peer credentials */
+#define LOCAL_CREDS 0x002 /* pass credentials to receiver */
+#define LOCAL_CONNWAIT 0x004 /* connects block until accepted */
#ifdef _KERNEL
struct mbuf;