/*
- * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#include <sys/queue.h>
#include <sys/un.h>
#include <sys/ucred.h>
+#include <sys/socketvar.h>
/*
* Protocol control block for an active
unp_gen_t unp_gencnt; /* generation count of this instance */
int unp_flags; /* flags */
struct xucred unp_peercred; /* peer credentials, if applicable */
- lck_mtx_t *unp_mtx; /* per unpcb lock */
+ decl_lck_mtx_data( ,unp_mtx); /* per unpcb lock */
int rw_thrcount; /* disconnect should wait for this count to become zero */
};
#endif /* KERNEL */
#define UNP_HAVEPC 0x0001
#define UNP_HAVEPCCACHED 0x0002
#define UNP_DONTDISCONNECT 0x0004
+#define UNP_TRACE_MDNS 0x1000
#ifdef KERNEL
struct unpcb_compat {
_UNPCB_LIST_ENTRY(unpcb_compat) unp_link; /* glue on list of all PCBs */
_UNPCB_PTR(struct socket *) unp_socket; /* pointer back to socket */
_UNPCB_PTR(struct vnode *) unp_vnode; /* if associated with file */
- ino_t unp_ino; /* fake inode number */
+ u_int32_t unp_ino; /* fake inode number */
_UNPCB_PTR(struct unpcb_compat *) unp_conn; /* control block of connected socket */
#if defined(KERNEL)
u_int32_t unp_refs;