[PATCH] Fix IE lengths in the sgsn code

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Alexander Chemeris alexander.chemeris at gmail.com
Wed Jul 3 20:54:17 UTC 2013


On Wed, Jul 3, 2013 at 12:14 PM, Holger Hans Peter Freyther
<holger at freyther.de> wrote:
> On the other hand could
> you please elaborate on why you picked "50"? This looks a bit too small.
>
> "MS Radio Access capability ... LV 6 - 52"
>    -- Table 9.4.1
>
>
> "The MS RA capability is a type 4 information element, with a maximum
>   length of 52 octets."
>
>    -- 10.5.5.12a
>
>
> So if I remove one byte for the length, then the Capa can still be 51
> bytes? How do you end up with 50?

I based my calculations on the "Figure 10.5.128a/3GPP TS 24.008 MS
Radio Access Capability information element". I.e. I assumed that 52
octets are in case of TLV, i.e. including IEI and Length octets. I'm
not sure why do they include IEI for Type 4 (LV) IEs - probably for
consistency.

> PS: I didn't look at the other hunk and this size

Same logic as above.

--
Regards,
Alexander Chemeris.
CEO, Fairwaves LLC / ООО УмРадио
http://fairwaves.ru




More information about the OpenBSC mailing list