aboutsummaryrefslogtreecommitdiffstats
path: root/include/isup_types.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-19 09:34:05 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-20 11:49:39 +0100
commita79ac9be8d19bb66c2774ec6b45108b54f208586 (patch)
tree62d9ee4f9f77c6d6680d41bd2895f5d2ddd8e773 /include/isup_types.h
parenta4661fb228a5cfee262410c38c12afa610f0942f (diff)
isup: ANSI/ITU have a different idea about the CIC and spare bits
There can be 2 or 4 spare bits depending on the ISUP spec, it is better to handle this in higher code and assume the whole thing is a cic.
Diffstat (limited to 'include/isup_types.h')
-rw-r--r--include/isup_types.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/isup_types.h b/include/isup_types.h
index 7eff76c..6048ce3 100644
--- a/include/isup_types.h
+++ b/include/isup_types.h
@@ -32,13 +32,7 @@ struct mtp_link_set;
#define ISUP_MSG_GRA 0x29
struct isup_msg_hdr {
-#if __BYTE_ORDER == __LITTLE_ENDIAN
- uint16_t cic : 12,
- spare : 4;
-#elif __BYTE_ORDER == __BIG_ENDIAN
- uint16_t spare : 4,
- cic : 12;
-#endif
+ uint16_t cic;
uint8_t msg_type;
uint8_t data[0];
} __attribute__((packed));