[bsc_hack] Make sure that the newly defined structs match the current packets

For System Information Type 5 and System Information Type 6 the L2 pseudo
length is not transmitted. This is why we substract the struct size with -1.
This commit is contained in:
Holger Freyther 2008-12-28 16:32:41 +00:00
parent 1ad732c699
commit 24287b6bb2
1 changed files with 7 additions and 0 deletions

View File

@ -524,6 +524,13 @@ static const struct bcch_info bcch_infos[] = {
},
};
static_assert(sizeof(si1) == sizeof(struct gsm48_system_information_type_1), type1)
static_assert(sizeof(si2) == sizeof(struct gsm48_system_information_type_2), type2)
static_assert(sizeof(si3) == sizeof(struct gsm48_system_information_type_3), type3)
static_assert(sizeof(si4) >= sizeof(struct gsm48_system_information_type_4), type4)
static_assert(sizeof(si5) == sizeof(struct gsm48_system_information_type_5)-1, type5)
static_assert(sizeof(si6) >= sizeof(struct gsm48_system_information_type_6)-1, type6)
/* set all system information types */
static int set_system_infos(struct gsm_bts *bts)
{