aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-25e1_input: Stop the timer when deleting the signalling link on the TSHolger Hans Peter Freyther1-0/+3
Stop the tx_timer when deleting the link on top of that ts. Otherwise bad things might happen. E.g. when scheduling a write on OML and then the OML link vanishes... This is a slight layering violation as there could be more than one signalling link on the timeslot (at least in theory) so the queue and the timer should move to the e1inp_sign_link.
2010-04-25[e1_input] When destroying a link clear all pending messagesHolger Hans Peter Freyther1-0/+7
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-1/+1
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-4/+4
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2009-12-29rsl_sendmsg: Print message in case trx == NULLHarald Welte (local)1-2/+8
2009-12-22Import the new logging architectureHolger Hans Peter Freyther1-0/+2
This is the new logging architecture, including * support for multiuple logging targets like stderr and vty * log levels in addition to categories/subsystems * filtering based on imsi, i.e. only see events for one subscriber * dynamically change log level for each category for each vty
2009-12-17logging: introduce log levels at caller siteHarald Welte1-7/+7
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-12-01make use of new S_GLOBAL_SHUTDOWN signal to properly close pcap_fdHarald Welte1-0/+17
This avoids broken pcap files with partial packets due to non-flushed buffers.
2009-08-12remove printf for every packet in pcap codeHarald Welte (local)1-2/+0
2009-08-10misc: Add prototypes to header files, include more header filesHolger Hans Peter Freyther1-0/+1
Fix various warnings about implicit declarations of functions.
2009-08-08the actual config file code (not just config files)Harald Welte1-13/+35
this was missing from commit a08a9acdb6bff0ee4fdf0f58b78b6525017a1f9f
2009-07-28move allocation of talloc contexts into link-time constructorHarald Welte1-4/+6
This is much more optimal than checking if the context exists every time we allocate the respective object.
2009-06-27fix various RSL msgb memory leaks in error pathsHarald Welte1-0/+1
2009-06-26use taloc_zero() rather than talloc() and explisit memset()Harald Welte1-3/+1
2009-06-26use named variant when allocating msgb'sHarald Welte1-1/+1
when we generate a talloc report (SIGUSR1), we can now see which system allocated a given msgb, this helps memory leak debugging
2009-06-20introduce talloc all over OpenBSCHarald Welte1-1/+8
2009-06-10[pcap] Write incoming packages without the extra mISDN headerAndreas Eversberg1-4/+7
This patch fixes the PCAP logging. If frames are received from E1 interface, an 8 byte mISDN header (MISDN_HEADER_LEN) is in front of the RSL packet. When frames are transmitted to the E1 interface, the pcap_write_packet function will get a message buffer without the mISDN header in front of the RSL packet. The pcap file was tested and the output is correct. Follow up patches should make use the msgb->l2, make the ipaccess code use the pcap writing too...
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+498