Implement gsm340_{gen_,}scts() without using tm_gmtoff

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

Daniel Willmann dwillmann at sysmocom.de
Wed Mar 26 22:30:43 UTC 2014


Hello,

this patch series depends on two patches from Alexander (once they sign
handling is fixed):

sms: Fix gsm340_scts() to correctly decode absolute valid times.
sms: Fix support of negative timezone offsets in gsm340_gen_scts().

The first patch adds a test case to check that gsm340_scts is the inverse of
gsm340_gen_scts.

The next patches add a helper function to calculate the gmt offset and use
those in the *_scts functions.

The helper function is somewhat ugly, but it is the only portable way I could
find to get the GMT offset.
Ideas welcome


Regards,
Daniel

-- 
- Daniel Willmann <dwillmann at sysmocom.de>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Schivelbeiner Str. 5
* 10439 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte




More information about the OpenBSC mailing list