[PATCH] rewritten gsm 7 bit encoding

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

Nico Golde openbsc at ngolde.de
Tue Jul 20 13:49:32 UTC 2010


Hi,
* Nico Golde <openbsc at ngolde.de> [2010-07-20 14:10]:
> * Holger Hans Peter Freyther <holger at freyther.de> [2010-07-20 13:03]:
[...] 
> > On 07/20/2010 05:05 AM, Nico Golde wrote:
> > I think gsm_7bit_encode should return the length of bytes
> > it has written to, not more. :)
> 
> Yes and I think this is part of the problem. Currently the 
> function returns i instead of z while z is the counter for 
> the bytes actually written and i the number of encoded 
> septets. I will probably look into this at the weekend.

Ok had some time now. Please check the attached patch.

Cheers
Nico


More information about the OpenBSC mailing list