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(a)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