osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/31416 ) Change subject: DO NOT MERGE: test struct_endianness CI ...................................................................... DO NOT MERGE: test struct_endianness CI Change-Id: I91625b54ab2698504340f627c8473e2967868f6d --- M include/osmocom/bsc_nat/msc.h 1 file changed, 38 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc-nat refs/changes/16/31416/1 diff --git a/include/osmocom/bsc_nat/msc.h b/include/osmocom/bsc_nat/msc.h index 77fc001..2dbc5fa 100644 --- a/include/osmocom/bsc_nat/msc.h +++ b/include/osmocom/bsc_nat/msc.h @@ -40,3 +40,32 @@ void msc_free(struct msc *msc); void msc_free_subscr_conn_all(struct msc *msc); + + + + +struct gsm341_ms_message { + struct { +#if OSMO_IS_LITTLE_ENDIAN + uint8_t code_hi:6; + uint8_t gs:2; + uint8_t update:4; + uint8_t code_lo:4; +#elif OSMO_IS_BIG_ENDIAN +#endif + } serial; + uint16_t msg_id; + struct { +#if OSMO_IS_LITTLE_ENDIAN + uint8_t language:4; + uint8_t group:4; +#endif + } dcs; + struct { +#if OSMO_IS_LITTLE_ENDIAN + uint8_t total:4; + uint8_t current:4; +#endif + } page; + uint8_t data[0]; +} __attribute__((packed)); -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/31416 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bsc-nat Gerrit-Branch: master Gerrit-Change-Id: I91625b54ab2698504340f627c8473e2967868f6d Gerrit-Change-Number: 31416 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-MessageType: newchange