[PATCH] sms: Proper decoding and storage of SMS validity period.

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
Fri Mar 7 19:11:06 UTC 2014


- Use time_t instead of abstract minutes to store validity time to make
sure we support all possible values.
- Return UNIX time from it to support both relative and absolute expire
times.
- Pass a current time to gsm340_validity_period() to compute the absolute
expire time if a relative time is specified. What time is "current" is to b
- We also introduce SMS_DEFAULT_VALIDITY_PERIOD macros to reduce number of
magic values.

PS This is a first patch of a series of patches which fix SMS validity time
decoding. I'm cleaning the patch set and want to see if this patch is fine,
as other patches rely on it.

-- 
Regards,
Alexander Chemeris.
CEO, Fairwaves, Inc. / ООО УмРадио
https://fairwaves.co
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20140307/be4197a6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sms-Proper-decoding-and-storage-of-SMS-validity-peri.patch
Type: text/x-patch
Size: 6164 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20140307/be4197a6/attachment.bin>


More information about the OpenBSC mailing list