/*
- * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
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;
u_quad_t xu_alignment_hack;
};
-#if !CONFIG_EMBEDDED
struct xunpcb64_list_entry {
u_int64_t le_next;
struct xsocket64 xu_socket;
};
-#endif /* !CONFIG_EMBEDDED */
#pragma pack()