summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* misc: Use static const struct for LAPD and AbisHolger Hans Peter Freyther2012-11-222-2/+2
|
* sms: Mark the state dispatch table as static constHolger Hans Peter Freyther2012-11-222-4/+4
| | | | | | GCC 4.7.2 was already smart enough to see that the table is const so there is no change in the generated assembly code. For some reason the dispatch is still going through one relocation.
* sms: Fix typos in the comments and log messages.Holger Hans Peter Freyther2012-11-222-5/+5
|
* smr: Introduce an id and prefix all log messages with SMR(ID)Holger Hans Peter Freyther2012-11-222-32/+70
| | | | | | | | | | 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-222-31/+62
| | | | | | | | | | | | | | 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
* actually install osmo-arfcn and osmo-auc-gen as part of 'make install'Harald Welte2012-11-161-1/+1
|
* msgb: fix msgb_pull_u*()Steve Markgraf2012-11-141-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>
* smc: Fix a typo in the smc codeHolger Hans Peter Freyther2012-11-141-1/+1
|
* 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.
* smc: Print the current state of the SMSHolger Hans Peter Freyther2012-11-111-1/+3
| | | | | | When the connection may not released print the name of the current state to ease with debugging and verification that this is not a valid state transition.
* sms: Remove the commented out code that was the default in OpenBSCHolger Hans Peter Freyther2012-11-111-1/+0
| | | | | This code got copied from OpenBSC and we used the network specific and private numbering plan. Remove it as it can be easily set.
* sms: Reduce the logging level to debugHolger Hans Peter Freyther2012-11-111-3/+3
| | | | | <001c> gsm0411_smr.c:175 TX: MNSMS-REL-REQ adds little value so I am reducing it to a debug statement.
* debian: Create a git-buildpackage based 0.5.3Holger Hans Peter Freyther2012-11-062-1/+7
|
* debian: Testing was disabled because of a funny x86 compiler issue caused by usHolger Hans Peter Freyther2012-11-051-5/+0
| | | | | | | | The bits test will fail on Debian Stable for x86. Somehow the load of a static const array is ending up accessing random memory. This only happens when not using any -OX options and this is caused by us. Do not override the default debian CFLAGS.. and the tests will pass on debian stable.
* GSM48: Avoid unaligned access in gsm48_construct_raAndreas Eversberg2012-11-051-1/+3
| | | | | This avoids an unaligned access on platforms that don't support them, such as ARMv4/ARMv5.
* 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.
* Do not use --version-script linker flag on OSXTobias Engel2012-10-273-2/+14
| | | | | Add a check to not use --version-script linker flag if compiled on OSX since it doesn't exist there
* Define struct iphdr for OSXTobias Engel2012-10-271-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.
* logging: Make sure to install standard "end" command in VTY nodeHarald Welte2012-10-222-0/+3
| | | | | When you are in the config-log VTY node, you expect "end" to work like in any other sub-node of config.
* logging: Don't forget to save "logging filter all 1"Harald Welte2012-10-221-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.
* Doc: Adding new parameter descriptions in gprs_bssgp_bss.cAndreas Eversberg2012-09-301-1/+9
|
* Fix: Correcting bssgp_tx_fc_bvc, bssgp_tx_fc_ms, bssgp_tx_ul_udAndreas Eversberg2012-09-303-11/+30
|
* Fix: gprs_ns_destroy() now frees all NSVCs and its timersAndreas Eversberg2012-09-291-4/+14
| | | | | Freeing memory of registered timers and file descriptors cause corrupt lists.
* logging: Modify the testcase to excercise Nico's fixHolger Hans Peter Freyther2012-09-271-1/+1
|
* logging: Move the logging test from OpenBSC into libosmocoreHolger Hans Peter Freyther2012-09-276-2/+94
| | | | | Add a testcase for the logging facility. The test is coming from the OpenBSC code.
* logging.c: Do not crash on empty category nameNico Golde2012-09-271-5/+7
| | | | | log_parse_category_mask(), skip log category name right away if name is NULL to prevent passing a NULL ptr to strlen.
* gsm_utils.c: in 7bit decoding, first check if the last character was an ↵Nico Golde2012-09-211-5/+5
| | | | extension character before doing anything else
* gsm_utils: Fix up coding style in previous patchHarald Welte2012-09-201-2/+2
| | | | 'if' is not a function, so we have space before parenthesis.
* build: fix directory creation for core headers, introduced by d471a219.Nico Golde2012-09-201-1/+1
|
* gsm_utils.c: cleanup + do not use dynamic memory when decoding 7bit messagesNico Golde2012-09-201-14/+13
|
* Fix build with dpkg-buildpackage.Max2012-09-172-0/+11
|
* git: Ignore generated tests executablesHolger Hans Peter Freyther2012-09-111-0/+2
|
* vty: Include osmocom/core/utils.h for the value_string structHolger Hans Peter Freyther2012-09-111-0/+1
|
* tests: Make the gb test work with srcdir != builddirHolger Hans Peter Freyther2012-09-114-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
* logging: Introduce a print_filename flag for the logtargetHolger Hans Peter Freyther2012-09-112-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.
* vty: Address compiler warning about the const qualifierHolger Hans Peter Freyther2012-09-111-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]
* vty: Address compiler warning about tolowerHolger Hans Peter Freyther2012-09-111-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]
* gsm: Address compiler warning about unused variable 'z'Holger Hans Peter Freyther2012-09-111-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]
* logging: Mark the log_info_cat pointer as constsHolger Hans Peter Freyther2012-09-112-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.
* Gb: Add functions for sending flow control messages from BSS sideHarald Welte2012-09-102-0/+113
|
* Gb: Add header file for BSS-side BSSGP functionsHarald Welte2012-09-103-0/+69
| | | | .. not sure how we could have missed that so far.
* libosmogb: make build conditional, disable in embedded buildHarald Welte2012-09-082-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...
* backtrace: don't use fprintf, but printf (for osmocom-bb)Harald Welte2012-09-081-1/+1
|
* msgb: msgb_get() is supposed to get bytes from END, msgb_pull() from HEADHarald Welte2012-09-081-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.
* Merge branch 'bssgp_fc'Harald Welte2012-09-0710-6/+705
|\
| * BSSGP: print per-bvc flow control parameters on vtyHarald Welte2012-09-071-1/+12
| |
| * BSSGP: make bvc_ctx->fc a dynamic talloc allocationHarald Welte2012-09-073-56/+58
| | | | | | | | | | this ensures that we can talloc the flow-control queue entries as siblings off the bvc_ctx.
| * GPRS BSSGP test: integrate into autotestHarald Welte2012-09-074-0/+223
| | | | | | | | we use a smalle shell script to iterate over multiple tests
| * BSSGP flow-control: Add unit test for algorithm testsHarald Welte2012-09-072-1/+172
| |
| * BSSGP flow-control: various fixesHarald Welte2012-09-073-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