aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/input
AgeCommit message (Collapse)AuthorFilesLines
2010-01-13[ipaccess] Create a method to send the ID ACK messagesHolger Hans Peter Freyther1-1/+7
2009-12-21ipaccess: Fix two minor bugs regarding multi-TRX setupHarald Welte1-2/+3
we need to set newbfd->priv_nr to 2+trx_id, rather than keeping it '2' all the time, as it is used to look-up the e1i_ts when we receive a packet. A constant '2' would always match to TRX 0. we also need to keep one separate bit for each TRX state in order to properly generate the EVT_E1_TEI_UP event for trx > 0.
2009-12-16ip.access: Keep OML/RSL up/down state per-bts for multi-BTS setupsHarald Welte1-7/+6
2009-11-17[ipaccess] Fix spelling in the commentHolger Hans Peter Freyther1-1/+1
2009-11-17fix some more compiler warningsHarald Welte1-1/+1
2009-10-29ip.access: Header has a 16bit length in network byte orderSylvain Munaut1-5/+5
This is confirmed by looking at the source of their dissector. The length can go up to 273 bytes apparently (again, according to the source of their dissector).
2009-10-29[misc] Use talloc_zero instead of talloc and later memsetHolger Hans Peter Freyther1-6/+3
2009-10-27input/ipaccess.c: clang says ret might be uninitializedHolger Hans Peter Freyther1-1/+1
and it appears to be right that for the "default" case ret will not be assigned and we return ret.
2009-10-21[ipaccess] revert commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889Harald Welte1-1/+5
Commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889 caused the RSL initialization to happen too early, resulting in the BTS bootstrapping but missing [some of?] the system information types.
2009-10-20input/ipaccess: remove one more static variableHarald Welte1-5/+1
2009-10-20ip.access: Support multi-TRX / RSL stream IDHarald Welte1-16/+14
In order to support multi-TRX configurations, we need to be able to cope with multiple RSL streams (each with their own stream identifier) inside one ip.access TCP connection. Since this is very similar to using the TEI on a E1 line, we simply recycle the logic and data fields that are used for the TEI.
2009-10-08use tx delay timer instead of usleep() in ip.access input driverAndreas Eversberg1-9/+24
this fixes the delay of audio caused by stalling of the openbsc process. the use of 'usleep(100000)' for slowing down transmission to nanoBTS is replaced by the tx-delay timer. i did this on bs11 code, so i did it the same way. it actually queues frames for transmission not nanoBTS. on transmission a timer is started and when this timer expires, the next frame in the queue is transmitted (timer restarted) until the queue is empty.
2009-10-01input/ipaccess: Fix segv caused by use of uninitialized varSylvain Munaut1-1/+1
This is a regression coming from the recent split of the handle_ts1_read method in two. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2009-09-30[ipaccess] Prepare to reuse parts of the code for the A-linkHolger Hans Peter Freyther1-39/+90
For the MSC<->BSC connection we are going to use the same header as used from BTS<->BSC but we are not having an E1-Link, a gsm network or a gsm_bts available and can not use this part of the code.
2009-08-10ipaccess.c: Make the compiler happy...Holger Hans Peter Freyther1-1/+1
The compiler thinks the variables might not be initialized, we know it is wrong... but just make it happy.
2009-08-10misdn.c: Fix warning about redefining AF_ISDN..Holger Hans Peter Freyther1-0/+2
We use the same construct in e1_inpit.c, use it here too.
2009-08-10misc: Remove some obviously unused and unneeded variables..Holger Hans Peter Freyther1-1/+0
2009-08-10misc: Fix warnings about returning with value...Holger Hans Peter Freyther1-0/+2
return rc in these cases.
2009-08-08the actual config file code (not just config files)Harald Welte2-24/+20
this was missing from commit a08a9acdb6bff0ee4fdf0f58b78b6525017a1f9f
2009-08-04prepare mISDN driver for multiple lines/instancesHarald Welte1-12/+6
In order to use multiple mISDN cards, we need to: 1) move driver initialization out of line initialization 2) make sure we allow partial (virtual) E1 cards with < 30 B-channels
2009-07-04make sure misdn plugin handles DL_UNITDATA_INDHarald Welte1-0/+1
This reportedly fixes the problem that we didn't see MEASurement REPort messages from the BS-11.
2009-06-26use named variant when allocating msgb'sHarald Welte2-3/+3
when we generate a talloc report (SIGUSR1), we can now see which system allocated a given msgb, this helps memory leak debugging
2009-06-22fix various talloc / dynamic bts/trx related bugsHarald Welte1-4/+12
Prior to this patch, nanobts was not able to operate after recent changes
2009-06-21switch to dynamically allocated BTS and TRX data structuresHarald Welte1-2/+2
This makes it much easier to do run-time configuration using the vty interface.
2009-06-20introduce talloc all over OpenBSCHarald Welte2-5/+7
2009-06-10move openbsc into its own subdirectoryHarald Welte2-0/+1139