aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
AgeCommit message (Collapse)AuthorFilesLines
2013-02-27Added a ring buffer log target to store the last N log messages.Katerina Barone-Adesi3-0/+103
The log target can be used via log alarms and show alarms. Why? This feature was proposed/requested at http://openbsc.osmocom.org/trac/wiki/Tasks/ErrorLogTarget All messages use the same amount of space, prioritizing simplicity.
2013-02-21Add UMTS RRC message typesTobias Engel1-0/+68
2013-02-15misc: Doxygen tweaks: fixed some typos and minor errorsKaterina Barone-Adesi10-12/+18
Doxygen generates quite a lot of warnings on libosmocore. Some of them are obvious typos - this patch aims to fix such low-hanging fruit.
2013-02-10abis_nm: add parenthesis for new abis_nm_debugp_foh() macroHarald Welte1-3/+3
without this, we break e.g. the openbsc build...
2013-02-10turn abis_nm_debugp_foh() into a macroHarald Welte1-1/+11
this will avoid printing 'abis_nm.c' as the filename in the log, which is pretty useless during debugging. We want to know where abis_nm_debugp_foh() is being used from, not where it is implemented.
2012-12-18Add tlvp_val16_unal() / tlvp_val32_unal() to align 16 and 32 bit valuesAndreas Eversberg1-0/+24
This is required for CPUs < armv6, to access 16 and 32 values at right memory locations.
2012-12-11gsm: Add method to find ARFCN based on frequencySylvain Munaut1-0/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-06rsl: Add the 9.3.20 release mode enum to be used in OpenBSCHolger Hans Peter Freyther1-0/+6
2012-12-06gsm/a5: Return -ENOTSUP if the selected cipher is not supportedSylvain Munaut1-1/+1
Extracted from a patch by Max Suraev Max.Suraev@fairwaves.ru> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-11-22smr: Introduce an id and prefix all log messages with SMR(ID)Holger Hans Peter Freyther1-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.
2012-11-22smc: Introduce an id and prefix all log messages with SMC(ID)Holger Hans Peter Freyther1-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
2012-11-14msgb: fix msgb_pull_u*()Steve Markgraf1-3/+3
msgb_pull returns a pointer to the new begin of the buffer, unlike msgb_get(), where those functions were originally taken from. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-11-14smc: Make it possible to include gsm0411_smc.h as first header fileHolger Hans Peter Freyther1-0/+1
The code embeds the timer so one needs to include the header file.
2012-10-27Add "extern" keywordsTobias Engel1-5/+5
Without the "extern" keyword the variables in this header file will be seen as empty definitions when compiled on OSX.
2012-10-22logging: Make sure to install standard "end" command in VTY nodeHarald Welte1-0/+1
When you are in the config-log VTY node, you expect "end" to work like in any other sub-node of config.
2012-09-30Fix: Correcting bssgp_tx_fc_bvc, bssgp_tx_fc_ms, bssgp_tx_ul_udAndreas Eversberg1-2/+2
2012-09-11vty: Include osmocom/core/utils.h for the value_string structHolger Hans Peter Freyther1-0/+1
2012-09-11logging: Introduce a print_filename flag for the logtargetHolger Hans Peter Freyther1-0/+3
Introduce a print_filename attribute for each logtarget. Initialize it with 1 to be backward compatible with earlier versions. The bit is taken from an existint bitfield. There were at least six bits left of the byte.
2012-09-11logging: Mark the log_info_cat pointer as constsHolger Hans Peter Freyther1-1/+1
Applications should keep the log area in a static const area. Mark the pointer as const to address compiler warnings in OpenBSC, cast the const away for the osmo_log_info as it is not declared as const.
2012-09-10Gb: Add functions for sending flow control messages from BSS sideHarald Welte1-0/+8
2012-09-10Gb: Add header file for BSS-side BSSGP functionsHarald Welte1-0/+67
.. not sure how we could have missed that so far.
2012-09-08msgb: msgb_get() is supposed to get bytes from END, msgb_pull() from HEADHarald Welte1-3/+34
msgb_get() has been wrong all the time, despite the documentation being correct. If you've used the broken msgb_get() before, you have to change your code now, sorry.
2012-09-07BSSGP: make bvc_ctx->fc a dynamic talloc allocationHarald Welte1-1/+1
this ensures that we can talloc the flow-control queue entries as siblings off the bvc_ctx.
2012-09-07BSSGP flow-control: various fixesHarald Welte1-5/+13
* add more comments on units of struct members * make sure to parsre FC-BVC message correctly * add error message in case user passes PDU larger than bucket size * add new function to initialize flow control struct
2012-09-07libosmogb: Port BSSGP flow control from openbsc/laforge/bssgp_fc branchHarald Welte1-0/+37
This code is supposed to implement the BSSGP flow control algorithm, both for the per-BSS and for the per-MS flow control. The code currently has no test cases, they will come in a separate commit.
2012-09-07USSD: text is 'char' not uint8_tHarald Welte1-1/+1
2012-09-02gsmtap: add minimal support for encapsulating UMTS RRC in GSMTAPHarald Welte1-0/+7
2012-08-24GSM 04.08: Add 'enum gsm48_bcap_speech_ver'Harald Welte1-0/+9
2012-08-24GSM 04.08: Add support for parsing CSD related bearer capabilitiesHarald Welte2-0/+79
Also adds a test case for both encoder and decoder of this IE
2012-08-24GSM 08.58: Add channel modes for transparent data servicesHarald Welte1-4/+20
2012-08-20import vty_cmd_string_from_valstr() from osmo-btsHarald Welte1-0/+5
This function is able to generate a VTY help string based on an array of 'struct value_string'.
2012-08-15utils: Change semantic of OSMO_MAX/OSMO_MIN to match semantic of a functionHolger Hans Peter Freyther1-2/+2
Add parentheses around the OSMO_MAX and OSMO_MIN macro to match the behaviour of calling a function. The current version does not evaluate to what is expected. (OSMO_MAX(3, 2) + 13) currently results in 3 and not 16.
2012-08-03gb: Make suspend_ref a plain uint8_t instead of a uint8_t*Holger Hans Peter Freyther1-1/+1
The OpenSUSE build is not happy about the uint8_t to uint8_t* assignment. As the suspend_ref is a mandatory field we can make it a plain uint8_t. Increase the LIBVERSION as the ABI has changed.
2012-07-18authentication: More documentationHarald Welte1-17/+27
2012-07-14backtrace: Add a variant that uses the libosmocore logging frameworkHarald Welte1-0/+1
I recently discovered that we can only print backtraces to stdout, which is of course useless in a daemon environment. We'd rather want to use the libosmocore logging framework instead.
2012-07-14TLV: add new "vTvLV" type for GANHarald Welte1-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.
2012-07-13import gsm48_decode_lai() function from osmocom-bb/mobile sysinfo.cHarald Welte1-0/+2
2012-07-13timer: Add function osmo_timer_remaining() to determine remainign timeHarald Welte1-1/+3
2012-07-12VTY: Allow to compile vty.h and command.h headers with C++Andreas Eversberg2-3/+11
2012-07-12logging: Fix compile breakage introduced by the warning fixesHolger Hans Peter Freyther1-1/+1
Make sure the declaration and definition match, add const to the functions called by logp/logp2. Compile output: logging.c:317: error: conflicting types for 'logp' ../include/osmocom/core/logging.h:34: note: previous declaration of 'logp' was here logging.c:327: error: conflicting types for 'logp2' ../include/osmocom/core/logging.h:168: note: previous declaration of 'logp2' was here make[3]: *** [logging.lo] Error 1
2012-07-10logging: Avoid compiler warnings when compiling c++ codeAndreas Eversberg1-2/+2
this patch i use to suppress warnings when compiling osmo-pcu (c++). since __FILE__ is constant, the called logging function with parameter "file" must be constant too, in order to avoid compiler warnings.
2012-06-30codec: make data tables constant.Diego Elio Pettenò1-12/+12
When declaring them constant, they are written on the .rodata section instead of .data, which means that they can be mapped directly from disk to memory. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: simplify headers management and remove recursionDiego Elio Pettenò9-68/+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>
2012-06-29GAN/UMA: use correct IE Identifier foer T3920Harald Welte1-2/+2
As Dieter found out, there has been a mix-up of 3902 with 3920 :/
2012-06-24ganc: add value_strings for GAN message type and protocol discriminatorHarald Welte2-1/+10
2012-06-2444.318: Add missing message typesHarald Welte1-0/+3
2012-06-24Fix bit-endianness in UMA/GAN definitionsHarald Welte1-2/+19
2012-06-2444.318: add structure describing Control Channel Description IEHarald Welte1-0/+19
2012-06-23gsm_44_318: add protocol discriminator enum and data[0] array to hdrHarald Welte1-0/+8
2012-06-23gsm_44_318.h: fix syntax errors in GAN definitionsHarald Welte1-2/+2