[PATCH] convert literal APN name to protocol encoded version before use

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

Jacob Erlbeck jerlbeck at sysmocom.de
Mon Nov 16 08:46:58 UTC 2015


Hi,

On 13.11.2015 15:57, Andreas Schultz wrote:
> 
>> The APN consists of one or more labels. Each label is coded as a one
>> octet length field followed by that number of octets coded as 8 bit
>> ASCII characters
> 
> This converts a literal APN (e.g. Label1.Label2.Label3) to a structured
> field (e.g. \006Label1\006Label2\006Label3)

We already have gprs_apn_to_str and gprs_str_to_apn in
openbsc/src/gprs/gprs_utils.c (along with test cases)  which are
probably good candidates (among other functions in that file) to be
moved to libosmocore, which sgsnemu is using already.

Nevertheless most of the basic GPRS stuff (e.g. gsm_04_08_gprs.c which
is on a similar level) is still in openbsc, so I would like to have more
of a concept (gsm, gb, or a new gprs lib? Name prefix?) before starting
refactoring.

Jacob

-- 
- Jacob Erlbeck <jerlbeck at sysmocom.de>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte



More information about the OpenBSC mailing list