]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/aurp.h
xnu-792.24.17.tar.gz
[apple/xnu.git] / bsd / netat / aurp.h
index 8301f407846a5a819d01a5697e317c6e364d5976..c98f2321f7f791fa465217b0ccc59bb8510c7649 100644 (file)
@@ -27,8 +27,6 @@
  *     File: aurp.h
  */
 
-#ifdef AURP_SUPPORT
-
 #ifndef _NETAT_AURP_H_
 #define        _NETAT_AURP_H_
 #include <sys/appleapiopts.h>
@@ -168,6 +166,9 @@ typedef struct {
        unsigned short flags;
 } aurp_hdr_t;
 
+#ifdef AURP_SUPPORT
+
+extern atlock_t aurpgen_lock;
 extern gref_t *aurp_gref;
 extern unsigned char dst_addr_cnt;
 extern unsigned char net_access_cnt;
@@ -177,6 +178,7 @@ extern int net_port;
 extern int update_tmo;
 extern aurp_state_t aurp_state[];
 extern unsigned short net_access[];
+#endif
 
 struct myq
 {      struct mbuf *q_head;
@@ -184,6 +186,7 @@ struct myq
        int q_cnt;
 };
 
+#define LOCK_DECL(x)   atlock_t x
 
 #include <sys/uio_internal.h>
 
@@ -286,5 +289,3 @@ extern struct aurp_global_t aurp_global;
 #endif /* KERNEL_PRIVATE */
 #endif /* __APPLE_API_OBSOLETE */
 #endif /* _NETAT_AURP_H_ */
-
-#endif  /* AURP_SUPPORT */