aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2012-06-17libosmogb: move files to proper location and fix build0.5.0Harald Welte24-19/+26
2012-06-17add GPRS/Gb related osmo_prim SAPsHarald Welte1-0/+5
2012-06-17Import libgb from openbsc.gitHarald Welte19-0/+4449
2012-06-17libgb: separate header files related to spec and implementationHarald Welte6-219/+238
like in libosmogsm, we separate between header files that are just reflecting information in the respective specs, and header files that related to our specific implementation.
2012-06-17libgb: make sure all BSSGP functions have bssgp_ prefixHarald Welte5-29/+28
We change the minority of functions employing the gprs_bssgp_ prefix to match with the majority without gprs_ in front.
2012-06-17libgb/gprs: don't use log_info from libcommon anymoreHarald Welte2-1/+5
2012-06-17libgb: prefix all NS related functions with gprs_Harald Welte7-33/+92
2012-06-17libgb: don't call directly into GMM / LLC layerHarald Welte2-7/+108
Instead of direct function calls to individual functions, we now generate primitives (osmo_prim) and send them to one application-provided function "bssgp_prim_cb()"
2012-06-17libgb: remove dependency of BSSGP to include sgsn/gmm internal structsHarald Welte2-25/+33
2012-06-16libgb: Remove dependency to openbsc/debug.hHarald Welte13-26/+100
2012-06-16add additional newline in vty welcome message0.4.3Harald Welte1-2/+2
2012-06-16libgb: remove dependencies to openbsc/vty.h and openbsc/gsm_data.hHarald Welte5-29/+96
Rather than using openbsc internal data/functions, we now use only internal and libosmocore-provided ones.
2012-06-16add library VTY nodes for NS and BSSGPHarald Welte1-0/+2
2012-06-16libgb: Use library SS_L_NS instead lf local SS_NSHarald Welte4-7/+17
which removes some further dependencies of libgb to openbsc internal code and data.
2012-06-16signal: add SS_L_NS as a signal subsystem for NS code in libosmo-gbHarald Welte1-0/+1
2012-06-16libgb: move GPRS specific msgb CB definitions to separate headerHarald Welte8-8/+37
2012-06-16split libgb into a separate library for outside useHarald Welte11-32/+50
This also removes the dependency to osmo_sock() inside libcommon and replaces it with osmo_sock_* from libosmocore
2012-06-03VTY: safe version of printing VTY welcome messageHarald Welte2-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 ;)
2012-05-14src/codec: Fix typo in MakefileSylvain Munaut1-1/+1
Thanks to horizon for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-26LAPDm: Ensure there is no payload in DISC frames0.4.2Harald Welte1-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.
2012-04-19add GSM_LCHAN_PDTCHHarald Welte1-0/+1