]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/unpcb.h
xnu-4570.41.2.tar.gz
[apple/xnu.git] / bsd / sys / unpcb.h
index 2376c11f8fe1ae847a62252ba06cc6c3ba5925c0..9c66ca69b1483c947b1db92bcc78471cc4511990 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -67,6 +67,7 @@
 #include <sys/queue.h>
 #include <sys/un.h>
 #include <sys/ucred.h>
+#include <sys/socketvar.h>
 
 /*
  * Protocol control block for an active
@@ -134,7 +135,7 @@ struct      unpcb {
        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 */
@@ -155,6 +156,7 @@ struct      unpcb {
 #define UNP_HAVEPC                     0x0001
 #define UNP_HAVEPCCACHED               0x0002
 #define UNP_DONTDISCONNECT             0x0004
+#define        UNP_TRACE_MDNS                  0x1000
 
 #ifdef KERNEL
 struct  unpcb_compat {
@@ -165,7 +167,7 @@ struct      unpcb {
        _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;