]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/ndrv.h
xnu-1228.tar.gz
[apple/xnu.git] / bsd / net / ndrv.h
index d06b949a06123509fcae1ff0c91f0c416bf4c08e..5a1feb1f50caeecfc2d1daa553acdf55fc0e2498 100644 (file)
@@ -120,6 +120,20 @@ struct ndrv_protocol_desc
     struct ndrv_demux_desc*    demux_list;
 };
 
+#ifdef KERNEL_PRIVATE
+/* LP64 version of ndrv_protocol_desc.  all pointers 
+ * grow when we're dealing with a 64-bit process.
+ * WARNING - keep in sync with ndrv_protocol_desc
+ */
+struct ndrv_protocol_desc64 {
+    u_int32_t                          version;
+    u_int32_t                          protocol_family;
+    u_int32_t                          demux_count;
+    user_addr_t                                demux_list __attribute__((aligned(8)));
+};
+
+#endif // KERNEL_PRIVATE
+
 #define SOL_NDRVPROTO          NDRVPROTO_NDRV  /* Use this socket level */
 #define NDRV_DELDMXSPEC                0x02                    /* Delete the registered protocol */
 #define NDRV_SETDMXSPEC                0x04                    /* Set the protocol spec */