aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/unpcb.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/unpcb.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/unpcb.h')
-rw-r--r--sys/sys/unpcb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/unpcb.h b/sys/sys/unpcb.h
index b6305706fabc..a1186dedbae2 100644
--- a/sys/sys/unpcb.h
+++ b/sys/sys/unpcb.h
@@ -95,6 +95,8 @@ struct unpcb {
*/
#define UNP_HAVEPC 0x001
#define UNP_HAVEPCCACHED 0x002
+#define UNP_WANTCRED 0x004 /* credentials wanted */
+#define UNP_CONNWAIT 0x008 /* connect blocks until accepted */
#define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))