]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/atp.h
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / netat / atp.h
index 421c265f0cdb0bb64a7805ab96cac0d315fe41e6..87a474a8902fd8eaf8b54a78fcf3072b965c75ce 100644 (file)
 #define        ATP_XO_8MIN             4
 
 typedef struct {
+#if BYTE_ORDER == BIG_ENDIAN
         unsigned       cmd : 2,
                        xo : 1,
                        eom : 1,
                        sts : 1,
                        xo_relt : 3;
+#endif
+#if BYTE_ORDER == LITTLE_ENDIAN
+               unsigned                xo_relt : 3,
+                                               sts : 1,
+                                               eom : 1,
+                                               xo : 1,
+                                               cmd : 2;
+#endif
         u_char         bitmap;
-       ua_short       tid;
+               ua_short       tid;
         ua_long        user_bytes;
         u_char         data[ATP_DATA_SIZE];
 } at_atp_t;