aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-08-03increaes libosmocgsm LIBVERSIN due to gsm_decode_lai() change0.5.3Harald Welte1-1/+1
2012-08-03serial: don't set O_NDELAY, as it is more or less O_NONBLOCKHarald Welte1-1/+1
Applications like osmocon will set O_NONBLOCK themselves or have it done indirectly by registering it with libosmocore/select.c code.
2012-08-03gb: Make suspend_ref a plain uint8_t instead of a uint8_t*Holger Hans Peter Freyther2-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.
2012-08-02libgb: Link to the libraries used by libgbHolger Hans Peter Freyther1-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.
2012-08-02vty: Print the string using "%s", string to avoid security issuesHolger Hans Peter Freyther1-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.
2012-08-02Add missing includes to timer_test.c and osmo-auc-gen.cHarald Welte2-0/+2
This fixes the build with -Werror-implicit-function-declaration. taken from malformatted patch of Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
2012-07-25vty: Merge from a generic section in case no specific one existsHolger Hans Peter Freyther1-2/+11
2012-07-25vty: Use UTF-8 for the encoding and the ability to hide nodesHolger Hans Peter Freyther1-9/+11
There are certain nodes one might not want to document and the additional information can decide to hide the node.
2012-07-25vty: Document the .TEXT of the descriptionHolger Hans Peter Freyther1-1/+2
2012-07-25vty: Add xsd and a command that can generate the documentation.Holger Hans Peter Freyther6-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.
2012-07-21Fix encoding of BSSGP_IE_NUM_OCT_AFF in bssgp_tx_llc_discarded()Andreas Eversberg1-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.
2012-07-18authentication: More documentationHarald Welte2-20/+81
2012-07-14backtrace: update copyright noticeHarald Welte1-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...
2012-07-14backtrace: Add a variant that uses the libosmocore logging frameworkHarald Welte2-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.
2012-07-14TLV: add new "vTvLV" type for GANHarald Welte3-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.
2012-07-13gsm48_decode_lai(): return real integers for mcc/mnc, not hex!Harald Welte1-6/+13
This is to make it orthogonal with gsm48_encode_lai()
2012-07-13add gsm48_decode_lai() to map fileHarald Welte1-0/+1
2012-07-13import gsm48_decode_lai() function from osmocom-bb/mobile sysinfo.cHarald Welte2-0/+16
2012-07-13timer: Add function osmo_timer_remaining() to determine remainign timeHarald Welte2-1/+31
2012-07-12freebsd: Make libgb compile on FreeBSDHolger Hans Peter Freyther2-0/+38
Include header files for recfrom/AF_INET and include a struct ip_hdr as it is not available on *BSD.
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 Freyther2-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
2012-07-11correct inverted logic from commit f3ba8aAlexander Huemer1-1/+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-07-04bssgp: check for IMSI being a null pointer, not just an empty string.Harald Welte1-1/+1
2012-06-30build: use LT_INIT(pic-only) instead of forcing -fPIC.0.5.2Diego Elio Pettenò6-6/+6
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>
2012-06-30vty: avoid using a .data variable.Diego Elio Pettenò1-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>
2012-06-30codec: make data tables constant.Diego Elio Pettenò5-24/+24
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: use default htmldir directory.Diego Elio Pettenò1-7/+4
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: avoid multi-level recursion for src/ directory.Diego Elio Pettenò2-3/+1
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: LT_INIT already replaces AC_PROG_LIBTOOL.Diego Elio Pettenò1-1/+0
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: avoid calling undefined macro.Diego Elio Pettenò1-1/+0
This line was reporting "command not found" and should not be a problem, as there's a check for the same thing later on. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: avoid duplication of automake options, add no-dist-gzip.Diego Elio Pettenò2-2/+1
There's little to no point to build the gzip version of the tarball when we're building the bzip2 version. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: use BUILT_SOURCES for the generated source files.Diego Elio Pettenò1-0/+2
This avoids possible race conditions on heavily multi-core systems. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: use the standard AM_V_GEN definition for output.Diego Elio Pettenò2-4/+2
This actually allows for the command to be printed if using `make V=1` Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-06-30build: simplify headers management and remove recursionDiego Elio Pettenò11-78/+105
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-30build: simplify test handling and speed up build.Diego Elio Pettenò14-104/+51
Instead of using a ./configure parameter to decide whehter to build tests or not, use the check_PROGRAMS variable so that the tests are only built when running `make check`. To avoid slowing down the test phase itself, collapse the declaration of the test targets in the tests/Makefile.am file, this way they can be built and linked in parallel before the testsuite is executed. 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-27osmo-auc-gen: Add "-I" mode for generating triplets.dat for strongswanHarald Welte1-3/+23
If you want to use eap-sim-file with strongswan, you need a triplets.dat file in a specific format. osmo-auc-gen can now generate the respective format automatically.
2012-06-24ganc: add value_strings for GAN message type and protocol discriminatorHarald Welte5-2/+91
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
2012-06-19add missing Makefile.am for libosmo-gbHarald Welte1-0/+21
2012-06-18libosmogb: make sure to link with libosmovtyHarald Welte1-1/+1
2012-06-18libosmogb: export btsctx_* functionsHarald Welte1-0/+4
Those should be private, but osmo-pcu currently needs them...
2012-06-18linuxrbtree: don't use 'new' as argument name to avoid C++ incompatibilityHarald Welte1-1/+1
2012-06-17libosmogb: export missing symbols0.5.1Harald Welte1-0/+2