summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
Commit message (Collapse)AuthorAgeFilesLines
* Add tlvp_val16_unal() / tlvp_val32_unal() to align 16 and 32 bit valuesAndreas Eversberg2012-12-181-0/+24
| | | | | This is required for CPUs < armv6, to access 16 and 32 values at right memory locations.
* gsm: Add method to find ARFCN based on frequencySylvain Munaut2012-12-111-0/+3
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* rsl: Add the 9.3.20 release mode enum to be used in OpenBSCHolger Hans Peter Freyther2012-12-061-0/+6
|
* gsm/a5: Return -ENOTSUP if the selected cipher is not supportedSylvain Munaut2012-12-061-1/+1
| | | | | | Extracted from a patch by Max Suraev Max.Suraev@fairwaves.ru> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* smr: Introduce an id and prefix all log messages with SMR(ID)Holger Hans Peter Freyther2012-11-221-1/+2
| | | | | | | | | | When OpenBSC is handling more than one message at a time it is difficult to see which log message belongs to which SMR instance. Introduce a uint64_t id that can be set to the row_id/message_id and prefix all log messages with SMR(ID). This change is ABI and API incompatible with previous versions of libosmogsm.
* smc: Introduce an id and prefix all log messages with SMC(ID)Holger Hans Peter Freyther2012-11-221-1/+2
| | | | | | | | | | | | | | When OpenBSC is handling more than one message at a time it is difficult to see which log message belongs to which SMC. Introduce a uint64_t id that can be set to the row_id/message_id and prefix all log messages with SMC(ID). This change is ABI and API incompatible with previous versions of libosmogsm. Example: SMC(100) instance created SMC(100) message MNSMS-EST-REQ received in state IDLE
* smc: Make it possible to include gsm0411_smc.h as first header fileHolger Hans Peter Freyther2012-11-141-0/+1
| | | | The code embeds the timer so one needs to include the header file.
* Add "extern" keywordsTobias Engel2012-10-271-5/+5
| | | | | Without the "extern" keyword the variables in this header file will be seen as empty definitions when compiled on OSX.
* USSD: text is 'char' not uint8_tHarald Welte2012-09-071-1/+1
|
* GSM 04.08: Add 'enum gsm48_bcap_speech_ver'Harald Welte2012-08-241-0/+9
|
* GSM 04.08: Add support for parsing CSD related bearer capabilitiesHarald Welte2012-08-242-0/+79
| | | | Also adds a test case for both encoder and decoder of this IE
* GSM 08.58: Add channel modes for transparent data servicesHarald Welte2012-08-241-4/+20
|
* TLV: add new "vTvLV" type for GANHarald Welte2012-07-141-1/+97
| | | | | | | | | | | | | This new TLV type is specific to TS 44.318. Contrary to the TvLV type of TS 08.16/08.18, it has an inverted meaning of the extension (0x80) bit: * if the extension bit is not set, 1-byte length * if the extension bit is set, 2-byte length Futhermore, it has support for variable-length tags, where the tag part can be optionally two bytes in length. As this esoteric option hasn't been seen in the wild yet, we only add encoding support but skip decoding for now.
* import gsm48_decode_lai() function from osmocom-bb/mobile sysinfo.cHarald Welte2012-07-131-0/+2
|
* build: simplify headers management and remove recursionDiego Elio Pettenò2012-06-302-14/+0
| | | | | | | | | | | | There is no real reason to keep the include directory a multi-level recursion, so instead declare everything within include (so that we can use proper nobase_ declarations) and be it. Please note that since we removed the sub-Makefile.am, ./configure will not create the directory structure for us on out-of-tree builds, so we have to make sure the directory we're generating to exists first. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* GAN/UMA: use correct IE Identifier foer T3920Harald Welte2012-06-291-2/+2
| | | | As Dieter found out, there has been a mix-up of 3902 with 3920 :/
* ganc: add value_strings for GAN message type and protocol discriminatorHarald Welte2012-06-242-1/+10
|
* 44.318: Add missing message typesHarald Welte2012-06-241-0/+3
|
* Fix bit-endianness in UMA/GAN definitionsHarald Welte2012-06-241-2/+19
|
* 44.318: add structure describing Control Channel Description IEHarald Welte2012-06-241-0/+19
|
* gsm_44_318: add protocol discriminator enum and data[0] array to hdrHarald Welte2012-06-231-0/+8
|
* gsm_44_318.h: fix syntax errors in GAN definitionsHarald Welte2012-06-231-2/+2
|
* add GPRS/Gb related osmo_prim SAPsHarald Welte2012-06-171-0/+5
|
* add GSM_LCHAN_PDTCHHarald Welte2012-04-191-0/+1
|
* doc: Fix the Doxygen section endingsSylvain Munaut2012-04-187-7/+7
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* libosmocore/gsm: Fixed total size of gsm48_req_refAndreas Eversberg2012-02-071-3/+3
| | | | | "__attribute ((packed))" must be defined for unions, in order to make sure that the compiler packs unions.
* GSM 08.08: change gsm0808_create_classmark_update() prototypeHarald Welte2012-01-261-1/+2
| | | | | The caller explicitly specifies CM2 and CM3, rather than one blob containing both.
* TLV/msgb: Return first byte of newly-pushed data from msgb_*_push()Harald Welte2012-01-221-14/+28
| | | | | The msgb_*_push() functions erroneously returned the firsrt byte after newly-pushed information, which makes no sense at all.
* comp128: mark ki and srand as 'const' input parametersHarald Welte2011-12-061-1/+1
|
* SMS: export gsm411_bcdify() and gsm411_unbcdify() functionsHarald Welte2011-12-011-0/+6
| | | | | The same functions are e.g. required by the NITZ code in 04.08, and we don't want copy+paste.
* gsm/a5: Add documentationSylvain Munaut2011-11-171-0/+14
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/a5: Add const qualifier on the keySylvain Munaut2011-11-171-3/+3
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* include/gsm_04_11: Fix compatibility issue with GSM411_TMR_TC1ASylvain Munaut2011-11-121-1/+2
| | | | | | We need to keep the old one for compatibility ! Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/sms: Rewrite of SMR process, extracted from OpenBSCAndreas Eversberg2011-11-122-1/+46
| | | | | | | | | | | The SMR process is used to transfer SMS TPDUs. It is now extracted from OpenBSC. It includes a real state machine now for easier debugging. Also it implements the TR1M and TR2M timers. The memory notification procedure is missing, but not required for network side. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/sms: Rewrite of SMC process, extracted from OpenBSCAndreas Eversberg2011-11-123-4/+67
| | | | | | | | The SMC process is used to transfer RP frames. It is now extracted from OpenBSC. It includes a real state machine now for easier debugging. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/sms: Moved utility functions of SMS processing to new gsm0411_utils.cAndreas.Eversberg2011-11-122-1/+32
| | | | | Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/lapdm: Fix TA and power level handling in the ACCH headerAndreas.Eversberg2011-11-121-2/+5
| | | | | | | | | | | | | Timing advance and power level indicated by MS (measurement reports) and BTS (SI 5/6) are now stored for use at ACCH data link connection. This is part of a set of commit to fix LAPDm to handle datalink connection on ACCH (SAPI 3) This is required to transfer SMS on SACCH of TCH/f or SDCCH/8 (4). Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsm/lapdm: Make T200 timer depends on the link type (SACCH is slower)Andreas.Eversberg2011-11-121-1/+1
| | | | | | | | | | This is part of a set of commit to fix LAPDm to handle datalink connection on ACCH (SAPI 3) This is required to transfer SMS on SACCH of TCH/f or SDCCH/8 (4). Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* add header file containing UMA/GAN protocol definitionsHarald Welte2011-10-102-1/+154
|
* Split of LAPDm into a core part and a GSM specific partroot2011-10-103-49/+175
| | | | | | | | | | | | | | Instead of mixing together the GSM layer 1 interface and RSL interface with the implementation of LAPD, the core function of LAPD is now extracted from LAPDm. The core implementation is now in lapd_core.c and lapd_core.h respectively. The lapd_core.c implements exactly one datalink instance for one SAP. The surrounding implementation "lapdm.c" codes/decodes the layer 2 headers and handles multiplexing and datalink instances, as well as translates primitives from/to RSL layer. lapd_core.c can now be used for other LAPD implementations. (ISDN/ABIS)
* correct declaration of osmo_sitype2rslAlexander Huemer2011-09-051-1/+1
|
* RSL: add rsl_ipac_msg_name() for ipa specific RSL extension namesHarald Welte2011-09-021-0/+1
|
* doxygen: document some more structure members for RSLHarald Welte2011-08-181-14/+21
|
* doxygen: Add documentation for Abis OMLHarald Welte2011-08-172-25/+69
|
* doxygen: split VTY configuration in multiple filesHarald Welte2011-08-171-0/+11
|
* RSL: add doxygen documentationHarald Welte2011-08-171-9/+17
|
* doxygen: Add documentation for LAPDm codeHarald Welte2011-08-171-60/+78
|
* doxygen: Add documentation about TLV parserHarald Welte2011-08-171-13/+58
|
* sms: SMS where cropped (from VTY), concatenation of SMS where not possibleDennis Wehrle2011-07-241-0/+5
| | | | | | | | | | | | Additionally it wasn't possible to send concatenated sms from the vty. To send multiple sms, it is necessary to use padding bits and add a user_data_header. Therefore the gsm_7bit_encode function was splitted to gsm_7bit_encode and gsm_septets2octets. gsm_septets2octets: this is the old gsm_7bit_encode function + additional padding parameter Additionally the gsm_7bit_decode function was modified to take account for the user_data_header. With the new gsm_get_octet_len function you can get the octet length for a given septet length. I also added several sms tests.
* don't call a function argoment 'class' for the benefit of c++ usersHarald Welte2011-07-231-1/+1
| | | | This had broken lcr compilation...