summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05GSM48: Avoid unaligned access in gsm48_construct_raAndreas Eversberg1-1/+3
This avoids an unaligned access on platforms that don't support them, such as ARMv4/ARMv5.
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-27Do not use --version-script linker flag on OSXTobias Engel3-2/+14
Add a check to not use --version-script linker flag if compiled on OSX since it doesn't exist there
2012-10-27Define struct iphdr for OSXTobias Engel1-1/+1
Use FreeBSD struct iphdr definition for OSX also. From the commentary in the source file: On BSD the IPv4 struct is called struct ip and instead of iXX the members are called ip_XX. One could change this code to use struct ip but that would require to define _BSD_SOURCE and that might have other complications. Instead make sure struct iphdr is present on FreeBSD.
2012-10-22logging: Make sure to install standard "end" command in VTY nodeHarald Welte2-0/+3
When you are in the config-log VTY node, you expect "end" to work like in any other sub-node of config.
2012-10-22logging: Don't forget to save "logging filter all 1"Harald Welte1-0/+4
Prior to this fix, a persistent file or syslog log configuration didn't work across an application re-start, as the "logging filter all 1" was never saved and thus no messages were logged.
2012-09-30Doc: Adding new parameter descriptions in gprs_bssgp_bss.cAndreas Eversberg1-1/+9
2012-09-30Fix: Correcting bssgp_tx_fc_bvc, bssgp_tx_fc_ms, bssgp_tx_ul_udAndreas Eversberg3-11/+30
2012-09-29Fix: gprs_ns_destroy() now frees all NSVCs and its timersAndreas Eversberg1-4/+14
Freeing memory of registered timers and file descriptors cause corrupt lists.
2012-09-27logging: Modify the testcase to excercise Nico's fixHolger Hans Peter Freyther1-1/+1
2012-09-27logging: Move the logging test from OpenBSC into libosmocoreHolger Hans Peter Freyther6-2/+94
Add a testcase for the logging facility. The test is coming from the OpenBSC code.
2012-09-27logging.c: Do not crash on empty category nameNico Golde1-5/+7
log_parse_category_mask(), skip log category name right away if name is NULL to prevent passing a NULL ptr to strlen.
2012-09-21gsm_utils.c: in 7bit decoding, first check if the last character was an ↵Nico Golde1-5/+5
extension character before doing anything else
2012-09-20gsm_utils: Fix up coding style in previous patchHarald Welte1-2/+2
'if' is not a function, so we have space before parenthesis.
2012-09-20build: fix directory creation for core headers, introduced by d471a219.Nico Golde1-1/+1
2012-09-20gsm_utils.c: cleanup + do not use dynamic memory when decoding 7bit messagesNico Golde1-14/+13
2012-09-17Fix build with dpkg-buildpackage.Max2-0/+11
2012-09-11git: Ignore generated tests executablesHolger Hans Peter Freyther1-0/+2
2012-09-11vty: Include osmocom/core/utils.h for the value_string structHolger Hans Peter Freyther1-0/+1
2012-09-11tests: Make the gb test work with srcdir != builddirHolger Hans Peter Freyther4-53/+56
* Disable color and printing the filename of the stderr log target, update the results * Add the .ok, .err and .sh files to the extra_dist * Execute the shell script from the source directory
2012-09-11logging: Introduce a print_filename flag for the logtargetHolger Hans Peter Freyther2-5/+20
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-11vty: Address compiler warning about the const qualifierHolger Hans Peter Freyther1-1/+1
vty.c: In function 'vty_out_newline': vty.c:294:12: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
2012-09-11vty: Address compiler warning about tolowerHolger Hans Peter Freyther1-0/+1
Include ctype.h to have a declaration of tolower. utils.c: In function 'vty_cmd_string_from_valstr': utils.c:95:6: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
2012-09-11gsm: Address compiler warning about unused variable 'z'Holger Hans Peter Freyther1-3/+4
The comment explains why we don't care about the content of z, stop storing it. gsm_utils.c: In function 'gsm_7bit_encode': gsm_utils.c:253:13: warning: variable 'z' set but not used [-Wunused-but-set-variable]
2012-09-11logging: Mark the log_info_cat pointer as constsHolger Hans Peter Freyther2-3/+4
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 Welte2-0/+113
2012-09-10Gb: Add header file for BSS-side BSSGP functionsHarald Welte3-0/+69
.. not sure how we could have missed that so far.
2012-09-08libosmogb: make build conditional, disable in embedded buildHarald Welte2-0/+11
when we build for osmocom-bb cross-compilation, we don't have sockets nor netinet/in.h and thus NS/BSSGP make no sense...
2012-09-08backtrace: don't use fprintf, but printf (for osmocom-bb)Harald Welte1-1/+1
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-07Merge branch 'bssgp_fc'Harald Welte10-6/+705
2012-09-07BSSGP: print per-bvc flow control parameters on vtyHarald Welte1-1/+12
2012-09-07BSSGP: make bvc_ctx->fc a dynamic talloc allocationHarald Welte3-56/+58
this ensures that we can talloc the flow-control queue entries as siblings off the bvc_ctx.
2012-09-07GPRS BSSGP test: integrate into autotestHarald Welte4-0/+223
we use a smalle shell script to iterate over multiple tests
2012-09-07BSSGP flow-control: Add unit test for algorithm testsHarald Welte2-1/+172
2012-09-07BSSGP flow-control: various fixesHarald Welte3-15/+49
* 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 Welte3-4/+262
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-07BSSGP: fix unused variable compiler warningsHarald Welte1-8/+2
2012-09-07libosmogb: build without strict aliasing rulesHarald Welte2-2/+2
This allows us to reliably do the trick with casting structures like libgb_msgb_cb to the msgb->cb[] array. Shamelessly stolen from the Linux kernel.
2012-09-02gsmtap: add minimal support for encapsulating UMTS RRC in GSMTAPHarald Welte1-0/+7
2012-08-29libosmogsm: Back-port SMS related fixes from openbscHarald Welte2-1/+35
This was fixed in 9c3dc90d16a40789081c84e46620f4d66689fec1 of openbsc.git, after the sms code had been migrated here: introduce HAVE_TM_GMTOFF_IN_TM Not all architectures have the tm.tm_gmtoff member. This fixes cygwin builds.
2012-08-26Use package version since git info won't be available.Eric Butler2-1/+15
2012-08-26Fix debian package building.Eric Butler5-8/+11
* Removed log file * Add 'git' add 'libdpkg-perl' to build dependencies * Disable tests (one of them is failing)
2012-08-25misc: Fix make distcheck of libosmocore by adding the result to the distHolger Hans Peter Freyther1-1/+2
Add the new result file to the EXTRA_DIST.
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 Welte7-6/+314
Also adds a test case for both encoder and decoder of this IE
2012-08-24gsm48_ie: annotate functions with chapter numbers from 04.08 specHarald Welte1-29/+29
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 Welte2-0/+59
This function is able to generate a VTY help string based on an array of 'struct value_string'.