summaryrefslogtreecommitdiffstats
path: root/src/gsm_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* gsm_utils: Define 4 upper bits as "flags" and mask them out in utility functionsSylvain Munaut2010-11-131-2/+9
| | | | | | This way those function don't care about the flags they don't know about Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm_utils: Move the gsm_7bit_alphabet into the impl and make it staticHolger Hans Peter Freyther2010-07-231-0/+27
|
* gsm_7bit_decode: rtext does not hold a null byte, reduce the sizeHolger Hans Peter Freyther2010-07-211-1/+1
| | | | | I have added the + 1 as I thought rtext will hold a terminating null byte but it will not.
* tests: don't hardcode length values of expected encoding gsm_7bit_encode:Nico Golde2010-07-211-4/+6
| | | | | | | | | make sure to return the number of actually written bytes gsm_7bit_decode: calculate length of resulting septets from input length before decoding The input length to gsm_7bit_decode reflects the number of encoded bytes to be decoded. As the decoding is done on the input in septetes we need to take this into account and recalculate the length.
* gsm_7bit_decode: Handle the case of the last charachter being an escapeHolger Hans Peter Freyther2010-07-201-1/+1
| | | | | If i + 1 == length and it is an escape charachter we would try to read rtext[length] which is one after the field we have allocated.
* * rewrite GSM 7bit default encoding/decoding based on a lookup table as the ↵Nico Golde2010-07-201-20/+79
| | | | previous code produced wrong encodings for certain characters.
* gsm_utils: Fix typo in gsm band nameSylvain Munaut2010-07-041-1/+1
| | | | | | thanks to horizon for noticing :p Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* add new new gprs_tmsi2tlli() functionHarald Welte2010-06-011-0/+17
|
* import gsm48_parse_ra() and gprs_tlli_type() from openbscHarald Welte2010-05-011-0/+15
|
* fix compiler warnings (itsme <itsme@xs4all.nl>)Harald Welte2010-03-221-1/+1
| | | | | * added several 'const' for strings. * added 'extern' to declarations of rsl_rlm_cause_strs
* use strtol instead of atoiHarald Welte2010-03-071-1/+1
|
* import some gsm band/arfcn/time related utilities from OsmocomBBHarald Welte2010-03-071-1/+92
|
* import gsm_band_name() and gsm_band_parse() from OpenBSCHarald Welte2010-03-041-0/+55
|
* intial checkin of the libosmocore projectHarald Welte2010-02-201-0/+215