libosmocore: gsm48_mi_to_string() TMSI parsing

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/.

Вадим Яницкий axilirator at gmail.com
Mon Mar 14 19:46:31 UTC 2016


Hello all!

I just quickly looked at the gsm48_mi_to_string() method in gsm48.c.
I found that it is used in several projects like OsmocomBB and OpenBSC,
but it seems a bit strange to me that the TMSI represented in decimal...

> ...
> uint32_t tmsi;
> ...
> return snprintf(string, str_len, "%u", tmsi);
> ...

Can we move to use a hex representation instead of decimal? And why if not?

> ...
> uint32_t tmsi;
> ...
> return snprintf(string, str_len, "%x", tmsi);
> ...

С наилучшими пожеланиями,
Яницкий Вадим.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20160315/b7b2e772/attachment.htm>


More information about the OpenBSC mailing list