aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-07-21remove DLRSL and DLNM, we don't need themHarald Welte2-15/+1
They are not used anywhere in our libraries, so they should be defined by the respective applications
2011-07-19make sure we don't have namespace clashes between libraries and appsHarald Welte4-17/+17
* All loging prefixes in libraries should be DL like DLINP * All signals / subsystems should be called S_L_* SS_L_* * All command nodes should be called L_*_NODE This makes sure existinc code still compiles as expected
2011-07-18mkae the new 'void *dst' member part of a union with the trx pointerHarald Welte1-3/+4
this ensures struct msgb is the same size as before, which will ensure binary compatibility
2011-07-18vty: reserve nodes for libosmo-abisPablo Neira Ayuso1-0/+3
This patch reserves E1INP_NODE and IPA_NODE for libosmo-abis VTY interfaces.
2011-07-18msgb: add ->dst attribute to store routing informationPablo Neira Ayuso1-0/+3
This patch adds a new attribute to msgb objects. This new attribute will store a pointer to the routing information, in the case of the A-bis link, this will be used to store e1inp_sign_link instead of struct gsm_bts_trx. This deprecates msg->trx, that can be removed once all application are ported to use msg->dst.
2011-07-18logging: add libosmo-abis logging subsystemsPablo Neira Ayuso2-1/+41
This adds the libosmo-abis logging subsystems to libosmocore, it uses the new change that harald proposed based on negative numbers for library logging subsystems.
2011-07-18signal: reserve signal subsystems >= INT_MAX/2 for librariesPablo Neira Ayuso1-0/+23
The first range (from 0 to INT_MAX/2) of signal subsystems can be used by client applications while the second range (from INT_MAX) is reserved for libraries. This is useful to support signals defined in libraries that may be used by different client applications.
2011-07-17misc: Put git-version-gen into the tarballHolger Hans Peter Freyther1-0/+2
autoreconf does not work on released tarballs due the missing git-version-gen. Add it.
2011-07-16gsm 04.80: fix typo (256, not 265!)Harald Welte1-2/+2
This was introduced by me in commit 79599ba0eb7a9aeaeb9dfbbf4881f0633724a471 Thanks to Alexander Huemer for detecting it
2011-07-16gsm 04.80: ussd_request.text can contain 0xff, needs to be unsignedHarald Welte1-1/+1
Found by Smatch
2011-07-16lapdm: fix memory leak due to unreachable codeHarald Welte1-1/+0
detected by Smatch
2011-07-16gsm 08.08: use ANSI function definition with (void)Harald Welte2-2/+2
2011-07-16tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xffHarald Welte2-3/+3
If we encounter a tag with 0xFF, we overflow our existing tlv_parse array definitions. Warning: this breaks ABI
2011-07-16gprs_cipher_core: Fix potential buffer overflowsHarald Welte1-3/+3
detected by Smatch
2011-07-16telnet_interface: if we don't check for the return value, don't use retHarald Welte1-5/+4
2011-07-16telnet_interface: get rid of 'const' warningHarald Welte1-1/+1
2011-07-16get rid of non-ANSI function declarations missing (void)Harald Welte5-8/+8
Detected by Smatch
2011-07-16don't use signed bit-fieldsHarald Welte1-2/+2
detected by Smatch
2011-07-16timer: use (void) for functions that take no argumentsHarald Welte2-6/+6
This has been detected by http://smatch.sourceforge.net/
2011-07-16Revert various debian related changesHolger Hans Peter Freyther5-12/+19
The debian related changes were not meant to be comitted and were local experiments. The changes should go through Jan and not this way. Revert "more changes" This reverts commit 96ba20cb44e602abb292b53c9e4f92aa59998df1. Revert "debian: Updates to fix lintian errors" This reverts commit b670c86edd704d45b572b87111f3224abecc4767. Revert "debian: Switch to the 3.0(quilt) format to play with launchpad" This reverts commit 7a91d6071d1ef15e5a05f5feb7f79a06c279c673. Revert "debian: Add new changelog entry for the shlib:Depends change" This reverts commit 54b8c4e0edb2f0f0cde7d28c1715810dd5c6a4b1. Revert "debian: dpkg-buildpackage complains about this here" This reverts commit 4284307ead92f35e844e452c0ff9c73a61038096. Revert "debian: Add a new changelog entry" This reverts commit ae9b220d166dac277a9b9078add20650415d1cb2.
2011-07-15osmo_hexdump: Fix segfault when input is too long.Holger Hans Peter Freyther1-0/+2
In snprinftf the size is a size_t (unsigned) in case we want to write more than we have available, len_remain will be < 0. This was spotted while removing hexdump from simtrace and comparing it to our implementation. int snprintf(char *str, size_t size, const char *format, ...);
2011-07-13more changesHolger Hans Peter Freyther1-21/+3
2011-07-13debian: Updates to fix lintian errorsHolger Hans Peter Freyther4-17/+16
2011-07-13debian: Switch to the 3.0(quilt) format to play with launchpadHolger Hans Peter Freyther1-1/+1
2011-07-13debian: Add new changelog entry for the shlib:Depends changeHolger Hans Peter Freyther1-0/+6
2011-07-13debian: dpkg-buildpackage complains about this hereHolger Hans Peter Freyther1-1/+1
2011-07-13debian: Add a new changelog entryHolger Hans Peter Freyther1-0/+6
2011-07-12GSM 08.08: Fix generation of CIPHER MODE REJECTHarald Welte1-1/+1
The message has a total length of 4 octets, so don't allocate only 3 in the msgb.
2011-07-11gsm 08.08: add value_strings and gsm0808_msg_name() functionHarald Welte2-0/+89
2011-07-02fix against corrupted output in parallel loggingHarald Welte1-1/+1
In 825607672215b7a12ea6e201a89cd5209f6d657f it was attempted to fix a bug previously introduced by logging related changes. The problem is that a va_list can be corrupted after it has been used once, so we need to va_copy before each successive use. And if we copy it, we also need to use the copy, and not the original ;)
2011-06-29lapdm: make sure we flush all queues whenever entering IDLE state0.3.4Harald Welte1-0/+11
this fixes a memory leak where the final UA would always remain in memory after a LAPDm entity has been disconnected.
2011-06-29add msgb_set_talloc_ctx() to set the talloc context for msgb allocationsHarald Welte2-0/+7
2011-06-29make sure abis_nm <-> osmocom pchan type conversion always worksHarald Welte1-0/+2
2011-06-29LAPDm: Uplink SACCH frames use format B, not format B4Harald Welte1-5/+12
2011-06-27LAPDm: When Rx DATA from L1, L1 does not know the SAPIHarald Welte1-13/+14
We have to determine the SAPI ourselves inside the LAPDm header.
2011-06-27Fix the generation of the log_categories string + LAPDMHarald Welte1-4/+7
... I should do more testing :( Conflicts: src/logging.c
2011-06-27logging: make sure to add the internal categories, as intendedHarald Welte1-0/+6
2011-06-27add LAPDm code from osmocom-bb into libosmocore0.3.3Harald Welte6-3/+2707
2011-06-27logging: introduce library-internal logging categoriesHarald Welte3-27/+104
We do this by using a trick: library-internal log categories use negative subsystem numbers, which are converted into positive array indexes at the time of logging. library-internal log categories need to be knwo at compile-time, while application-specified categories now are of unlimited number, as they are dynamically allocated.
2011-06-26import gsm0502_calc_paging_group() from openbsc0.3.2Harald Welte4-1/+48
2011-06-26add some utility functions for paging related calculation (TS 05.02)Harald Welte3-8/+43
2011-06-26add gsm48_number_of_paging_subchannels() functionHarald Welte2-0/+15
(from openbsc's rsl_number_of_paging_subchannels)
2011-06-26add MAX() macro as OSMO_MAXHarald Welte1-0/+1
2011-06-26merge process.[ch] with application.[ch]Harald Welte6-80/+67
2011-06-26gsm/utils: Adding conversion of "mobile power class" to dBmAndreas Eversberg2-0/+43
Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-06-25sysinfo: add EXTENDED MEASUREMENT ORDER / MEASUREMENT INFO to SI typesHarald Welte2-0/+8
those two are used in the RSL SACCH FILLING messages and delivered like SI5 / SI6.
2011-06-25RSL: Fix typoHarald Welte1-1/+1
2011-06-23add value_string definitions for RSL message typesHarald Welte2-0/+77
2011-06-23introduce GSM primitive definitionsHarald Welte3-1/+32
The idea here is to use the osmocom core primitive code ot abstract out primitives for inter-layer comunication in GSM.
2011-06-23add new 'prim.h' header file for primitivesHarald Welte2-1/+21