X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/378393581903b274cb7a4d18e0d978071a6b592d..0c530ab8987f0ae6a1a3d9284f40182b88852816:/bsd/netat/atp.h diff --git a/bsd/netat/atp.h b/bsd/netat/atp.h index 421c265f0..87a474a89 100644 --- a/bsd/netat/atp.h +++ b/bsd/netat/atp.h @@ -79,13 +79,22 @@ #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;