summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * libosmogb: Port BSSGP flow control from openbsc/laforge/bssgp_fc branchHarald Welte2012-09-073-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.
* USSD: text is 'char' not uint8_tHarald Welte2012-09-071-1/+1
|
* BSSGP: fix unused variable compiler warningsHarald Welte2012-09-071-8/+2
|
* libosmogb: build without strict aliasing rulesHarald Welte2012-09-072-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.
* gsmtap: add minimal support for encapsulating UMTS RRC in GSMTAPHarald Welte2012-09-021-0/+7
|
* libosmogsm: Back-port SMS related fixes from openbscHarald Welte2012-08-292-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.
* Use package version since git info won't be available.Eric Butler2012-08-262-1/+15
|
* Fix debian package building.Eric Butler2012-08-265-8/+11
| | | | | | * Removed log file * Add 'git' add 'libdpkg-perl' to build dependencies * Disable tests (one of them is failing)
* misc: Fix make distcheck of libosmocore by adding the result to the distHolger Hans Peter Freyther2012-08-251-1/+2
| | | | Add the new result file to the EXTRA_DIST.
* 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-247-6/+314
| | | | Also adds a test case for both encoder and decoder of this IE
* gsm48_ie: annotate functions with chapter numbers from 04.08 specHarald Welte2012-08-241-29/+29
|
* GSM 08.58: Add channel modes for transparent data servicesHarald Welte2012-08-241-4/+20
|
* import vty_cmd_string_from_valstr() from osmo-btsHarald Welte2012-08-202-0/+59
| | | | | This function is able to generate a VTY help string based on an array of 'struct value_string'.
* utils: Change semantic of OSMO_MAX/OSMO_MIN to match semantic of a functionHolger Hans Peter Freyther2012-08-151-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.
* increaes libosmocgsm LIBVERSIN due to gsm_decode_lai() changeHarald Welte2012-08-031-1/+1
|
* serial: don't set O_NDELAY, as it is more or less O_NONBLOCKHarald Welte2012-08-031-1/+1
| | | | | Applications like osmocon will set O_NONBLOCK themselves or have it done indirectly by registering it with libosmocore/select.c code.
* gb: Make suspend_ref a plain uint8_t instead of a uint8_t*Holger Hans Peter Freyther2012-08-032-2/+2
| | | | | | 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.
* libgb: Link to the libraries used by libgbHolger Hans Peter Freyther2012-08-021-1/+4
| | | | | The Mandriva linker appears to be more strict in enforcing the as-needed rules. Link to the libraries that are used by libgb.
* vty: Print the string using "%s", string to avoid security issuesHolger Hans Peter Freyther2012-08-021-1/+1
| | | | | | The Mandriva GCC is more strict about handling format strings, the copyright string might contain escape sequences and then any memory could be read.
* Add missing includes to timer_test.c and osmo-auc-gen.cHarald Welte2012-08-022-0/+2
| | | | | | This fixes the build with -Werror-implicit-function-declaration. taken from malformatted patch of Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
* vty: Merge from a generic section in case no specific one existsHolger Hans Peter Freyther2012-07-251-2/+11
|
* vty: Use UTF-8 for the encoding and the ability to hide nodesHolger Hans Peter Freyther2012-07-251-9/+11
| | | | | There are certain nodes one might not want to document and the additional information can decide to hide the node.
* vty: Document the .TEXT of the descriptionHolger Hans Peter Freyther2012-07-251-1/+2
|
* vty: Add xsd and a command that can generate the documentation.Holger Hans Peter Freyther2012-07-256-3/+256
| | | | | | | | When building the doxygen documentation do not remove the other VTY documentation files in the doc/vty folder. Create a command that can be installed to dump all nodes and commands as XML on the given VTY. Create a schema for the XML file and a XSL-T script that can merge the generated file with additional information.
* Fix encoding of BSSGP_IE_NUM_OCT_AFF in bssgp_tx_llc_discarded()Andreas Eversberg2012-07-211-1/+1
| | | | | | This is a 24bit integer value, and thus we need to encode the three least significant octets of the network-byte-order 32bit value, not the three most significant octets.
* authentication: More documentationHarald Welte2012-07-182-20/+81
|
* backtrace: update copyright noticeHarald Welte2012-07-141-3/+1
| | | | | | Holger wrote that function and I made the logging version of it. The header was copied during the separation of backtrace.c from gsm_utils.c in the past, and of course gsm_utils.c had more people involved...
* backtrace: Add a variant that uses the libosmocore logging frameworkHarald Welte2012-07-142-9/+38
| | | | | | 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.
* TLV: add new "vTvLV" type for GANHarald Welte2012-07-143-2/+119
| | | | | | | | | | | | | 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.
* gsm48_decode_lai(): return real integers for mcc/mnc, not hex!Harald Welte2012-07-131-6/+13
| | | | This is to make it orthogonal with gsm48_encode_lai()
* add gsm48_decode_lai() to map fileHarald Welte2012-07-131-0/+1
|
* import gsm48_decode_lai() function from osmocom-bb/mobile sysinfo.cHarald Welte2012-07-132-0/+16
|
* timer: Add function osmo_timer_remaining() to determine remainign timeHarald Welte2012-07-132-1/+31
|
* freebsd: Make libgb compile on FreeBSDHolger Hans Peter Freyther2012-07-122-0/+38
| | | | | Include header files for recfrom/AF_INET and include a struct ip_hdr as it is not available on *BSD.
* VTY: Allow to compile vty.h and command.h headers with C++Andreas Eversberg2012-07-122-3/+11
|
* logging: Fix compile breakage introduced by the warning fixesHolger Hans Peter Freyther2012-07-122-5/+5
| | | | | | | | | | | | 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
* correct inverted logic from commit f3ba8aAlexander Huemer2012-07-111-1/+1
|
* logging: Avoid compiler warnings when compiling c++ codeAndreas Eversberg2012-07-101-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.
* bssgp: check for IMSI being a null pointer, not just an empty string.Harald Welte2012-07-041-1/+1
|