]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/nbp.h
xnu-792.10.96.tar.gz
[apple/xnu.git] / bsd / netat / nbp.h
index 9bac6ef0f19381f0be8ebe86574570471c991474..648d373a17b024f5f4cf2ea5979e5569d4d69bb1 100644 (file)
 #define        NBP_HDR_SIZE    2
 
 typedef struct at_nbp {
-        unsigned       control : 4,
-                       tuple_count : 4;
+#if BYTE_ORDER == BIG_ENDIAN
+        unsigned       
+               control : 4,
+               tuple_count : 4;
+#endif
+#if BYTE_ORDER == LITTLE_ENDIAN
+               unsigned
+                       tuple_count : 4,
+                       control : 4;
+#endif
        u_char          at_nbp_id;
        at_nbptuple_t   tuple[NBP_TUPLE_MAX];
 } at_nbp_t;