From 6a2989fd54a932465e426a684b3b30961116a8c8 Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Wed, 13 Apr 2005 00:01:46 +0000 Subject: 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) --- sys/sys/un.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/sys/un.h') 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; -- cgit v1.2.3