fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/31968 )
Change subject: l1ctl_proto: fix unpacked struct in l1ctl_gprs_dl_block_ind ......................................................................
l1ctl_proto: fix unpacked struct in l1ctl_gprs_dl_block_ind
The __attribute__((packed)) does not apply to inner structures. I found this problem when testing the new TTCN-3 message definitions.
Change-Id: I90e74330073a9090c2638fc3175ff0216b0da5ec Related: OS#5500 --- M include/l1ctl_proto.h 1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/68/31968/1
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 9bf40d2..3512424 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -376,7 +376,7 @@ /* payload of L1CTL_GPRS_DL_BLOCK_IND */ struct l1ctl_gprs_dl_block_ind { struct l1ctl_gprs_block_hdr hdr; - struct { + struct __attribute__((packed)) { uint16_t ber10k; /* Bit Error Rate */ int16_t ci_cb; /* C/I in centiBels */ uint8_t rx_lev; /* RxLev 0..63 */