Holger Hans Peter Freyther
f8a342c350
gsm_7bit_decode: rtext does not hold a null byte, reduce the size
...
I have added the + 1 as I thought rtext will hold a terminating
null byte but it will not.
2010-07-21 03:14:01 +08:00
Nico Golde
c0ce9aa20d
tests: don't hardcode length values of expected encoding gsm_7bit_encode:
...
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.
2010-07-21 02:43:58 +08:00
Holger Hans Peter Freyther
446bf37698
gsm_7bit_decode: Handle the case of the last charachter being an escape
...
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.
2010-07-20 02:54:54 +08:00
Nico Golde
28de05336b
* rewrite GSM 7bit default encoding/decoding based on a lookup table as the previous code produced wrong encodings for certain characters.
2010-07-20 02:48:17 +08:00
Sylvain Munaut
e10ae5b083
gsm_utils: Fix typo in gsm band name
...
thanks to horizon for noticing :p
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-04 11:41:36 +02:00
Harald Welte
c226317c9c
add new new gprs_tmsi2tlli() function
2010-06-01 10:47:07 +02:00
Harald Welte
a1c4f765ec
import gsm48_parse_ra() and gprs_tlli_type() from openbsc
2010-05-01 12:00:21 +02:00
Harald Welte
cbc8062ef8
fix compiler warnings (itsme <itsme@xs4all.nl>)
...
* added several 'const' for strings.
* added 'extern' to declarations of rsl_rlm_cause_strs
2010-03-22 08:28:44 +08:00
Harald Welte
d3ff15fc81
use strtol instead of atoi
2010-03-07 18:23:47 +01:00
Harald Welte
622b718195
import some gsm band/arfcn/time related utilities from OsmocomBB
2010-03-07 17:50:21 +01:00
Harald Welte
aebe08c71f
import gsm_band_name() and gsm_band_parse() from OpenBSC
2010-03-04 10:39:17 +01:00
Harald Welte
ec8b4501c7
intial checkin of the libosmocore project
2010-02-20 20:34:29 +01:00