summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* BSSGP flow-control: various fixesHarald Welte2012-09-072-10/+36
| | | | | | | * 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-072-4/+225
| | | | | | | | 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.
* BSSGP: fix unused variable compiler warningsHarald Welte2012-09-071-8/+2
|
* libosmogb: build without strict aliasing rulesHarald Welte2012-09-071-1/+1
| | | | | | 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.
* libosmogsm: Back-port SMS related fixes from openbscHarald Welte2012-08-291-1/+10
| | | | | | | | 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.
* GSM 04.08: Add support for parsing CSD related bearer capabilitiesHarald Welte2012-08-241-5/+90
| | | | 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
|
* import vty_cmd_string_from_valstr() from osmo-btsHarald Welte2012-08-201-0/+54
| | | | | This function is able to generate a VTY help string based on an array of 'struct value_string'.
* 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-031-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.
* 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.
* 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-251-0/+148
| | | | | | | | 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-181-3/+54
|
* 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-141-9/+37
| | | | | | 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-142-1/+22
| | | | | | | | | | | | | 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-131-0/+14
|
* timer: Add function osmo_timer_remaining() to determine remainign timeHarald Welte2012-07-131-0/+28
|
* 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.
* logging: Fix compile breakage introduced by the warning fixesHolger Hans Peter Freyther2012-07-121-4/+4
| | | | | | | | | | | | 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
|
* bssgp: check for IMSI being a null pointer, not just an empty string.Harald Welte2012-07-041-1/+1
|
* build: use LT_INIT(pic-only) instead of forcing -fPIC.Diego Elio Pettenò2012-06-305-5/+5
| | | | | | | | This actually allows for the user to override the decision and at the same time supports compilers that might not be able to use -fPIC at all. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* vty: avoid using a .data variable.Diego Elio Pettenò2012-06-301-7/+7
| | | | | | | | no_password_check was the only initialized, non-relocated data in the set of libraries, inverting its logic let us keep it in .bss (non-initialized data, which is mapped to the zero page). Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* codec: make data tables constant.Diego Elio Pettenò2012-06-304-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>
* build: avoid multi-level recursion for src/ directory.Diego Elio Pettenò2012-06-301-2/+0
| | | | Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* build: use BUILT_SOURCES for the generated source files.Diego Elio Pettenò2012-06-301-0/+2
| | | | | | This avoids possible race conditions on heavily multi-core systems. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* build: use the standard AM_V_GEN definition for output.Diego Elio Pettenò2012-06-301-2/+1
| | | | | | This actually allows for the command to be printed if using `make V=1` Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* ganc: add value_strings for GAN message type and protocol discriminatorHarald Welte2012-06-243-1/+81
|
* add missing Makefile.am for libosmo-gbHarald Welte2012-06-191-0/+21
|
* libosmogb: export btsctx_* functionsHarald Welte2012-06-181-0/+4
| | | | Those should be private, but osmo-pcu currently needs them...
* libosmogb: export missing symbolsHarald Welte2012-06-171-0/+2
|
* libosmogb: move files to proper location and fix buildHarald Welte2012-06-1711-1/+3806
|
* add additional newline in vty welcome messageHarald Welte2012-06-161-2/+2
|
* VTY: safe version of printing VTY welcome messageHarald Welte2012-06-032-19/+11
| | | | | | | | | | | | | | | | | | | | The old method used raw writes to the telnet FD, which is bad for several reasons: a) we don't know if we can actually write that many bytes to the socket at the given time b) the socket is still in blocking mode, so we could stall the entire process c) there may be weird interaction with the buffered writes of the vty_out Now, the print_welcome() functionality has moved to vty_hello() instead, where we can use normal vty_out() in buffered mode. This commit is expected to fix the garbled welcome message on arm-eglibc targets. It might still be a good idea to migrate the entire telnet interface to libtelnet - but at some later time ;)
* src/codec: Fix typo in MakefileSylvain Munaut2012-05-141-1/+1
| | | | | | Thanks to horizon for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* LAPDm: Ensure there is no payload in DISC framesHarald Welte2012-04-261-1/+6
| | | | | | When we send DISC frames (especially generated from RSL), we don't want any remaining bytes from the RSL message showing up as bogus DISC payload.
* doc: Fix the Doxygen section endingsSylvain Munaut2012-04-1824-24/+24
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* sync prototype of osmo_sockaddr_is_local with declarationHarald Welte2012-04-081-1/+1
| | | | | in e476442cf0e84c65565ace545f5b73602b5f0ffc we changed from sockle_t to unsigned int, but only in the header, not in the implementation!
* libosmogsm: Add tvlv_att_def to exported symbolsHarald Welte2012-04-051-0/+1
|
* misc: Fix make distcheck, add the new libosmogsm.map file to the tarballHolger Hans Peter Freyther2012-04-051-0/+2
|
* lapdm: fix RSL message format in RLL ERROR INDICATIONHarald Welte2012-04-051-1/+0
| | | | | | In rsl_rll_error() we don't need to re-set the msg->l2h as that would corrupt the message. The recipient would interpret any cause value as 0.
* libosmogsm: Introduce explicit list of exported symbolsHarald Welte2012-04-043-3/+233
| | | | | | | | There is now a "libosmogsm.map" file containing an explicit list of to-be-exported symbols. This should prevent us from leaking non-static symbols into the global namespace. A similar scheme should be adopted by all other osmocom libraries
* vty: Add a function to write the current config to a file.Holger Hans Peter Freyther2012-03-281-46/+130
|