aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-05-04GPRS: Introduce a GPRS Gb ProxyHarald Welte9-86/+627
The ida of the Gb proxy is to aggregate Gb links with a number of BSS and then present all the BSSGP-VC's together inside one NS-VC to the actual SGSN. The code is not yet expected to be complete.
2010-05-04gprs: remove msgb->nsvc pointer and replace it with NSEI and BVCIHarald Welte4-38/+71
According to TS 08.16, the BSSGP layer needs to specify NSEI and BVCI when executing the NS UNITDATA REQUEST primitive of the underlying NS layer. Rather than passing around a pointer to the 'struct gprs_nsvc', we now have NSEI and BVCI as members of 'struct obsc_msgb_cb' and set them when BSSGP hands a message down to NS. NS then does a lookup of the 'gprs_nsvc' based on the NSEI parameter.
2010-05-04gprs: Use new msgb->cb[] for storing a pointer to the NS-VC through which it ↵Harald Welte2-7/+14
was received
2010-05-04signal.h: Don't include gsm_subscriber but rather declare itHarald Welte1-1/+2
2010-05-04GPRS: Modularize the NS implementationHarald Welte4-109/+321
* move UDP listener code for NSIP from input/ipaccess.c and into gprs_ns.c * add PDU type, IE and CAUSE values for later IP based 3GPP TS 48.016 * support multiple NS-VCs and their lookup based on NSVC and sockaddr_in * maintain the remote_state (blocked/alive) for each NSVC * introduce the concept of GPRS_NS instances, move all global vars to instance * remove hardcoded calls to gprs_bssgp_rcvmsg() and replace it by callback WARNING: This is not finished code. While it will compile, it will not work yet, as BSSGP needs to be converted to properly indicate the NSVC to which it needs to send data.
2010-05-04gprs: Update gprs-sgsn branch to use new msgb->cb layoutHarald Welte4-28/+31
The explicit 'tlli, gmmh' members of struct msgb are gone from current libosmocore and have been replaced by the more generic 'control buffer' mechanism.
2010-05-04GPRS: add DGPRS to new debug apiHarald Welte1-0/+5
2010-05-04GPRS: remove hard-coded IP address for NSIP responses from SGSN->BTSHarald Welte3-43/+43
2010-05-04some more GPRS related commentsHarald Welte1-3/+6
2010-05-04Create new 'gprs-sgsn' branch on top of 'gprs-conf'Harald Welte16-12/+2690
This branch contains the partial SGSN/GGSN implementation that was originally developed as part of the gprs branch.
2010-05-04make gsm48_msgb_alloc() a static inline functionHarald Welte2-10/+9
This resolves some dependency problems (i.e. osmo_sgsn not needing to link gsm_04_08_utils.o which has RSL dependencies)
2010-05-04multi-trx config: Don't configure CCCH on 2nd TRX ;)Harald Welte1-2/+2
2010-05-01Merge commit '35a939463eee58492c88cbe7531288237cdcf454'Harald Welte2-0/+26
2010-05-01move gsm48_construct_ra() to libosmocoreHarald Welte1-27/+0
2010-05-01Import gsm48_construct_ra() from openbscHarald Welte2-0/+26
2010-05-01Makefile cleanupHarald Welte1-4/+5
move vty_interface_cmds.c and telnet_interface.c into libvty rather than explicitly linking the C files for every program
2010-05-01'struct gprs_ra_id' is now defined in libosmocoreHarald Welte1-8/+0
2010-05-01Merge commit 'debf95507461965aa82be2fa2bf34119343cfb0e'Harald Welte6-2/+69
2010-05-01VTY: ensure all cmd_elements are declared 'static'Harald Welte2-5/+26
While doing 'nm' on a VTY-using object file I noticed that all cmd_elements are global symbols, which is not good. Unfortuantely there are some vty-internal cmd_elements that need to span across object files, so I had to introduce gDEFUN() and gALIAS(). The old macros now all declare static structures.
2010-05-01gsm48.h: Prevent accidental re-inclusion of same header fileHarald Welte1-0/+1
2010-05-01import gsm48_parse_ra() and gprs_tlli_type() from openbscHarald Welte5-1/+67
2010-05-01Add missing file.Holger Hans Peter Freyther1-1/+1
2010-04-30define 'struct openbsc_msgb_cb' and accessor macro OBSC_MSGB_CB()Harald Welte1-0/+7
2010-04-30Merge commit '074c9f904cb5e4f6ab014d76e4abc079c16fc5d7'Harald Welte17-25/+742
2010-04-30msgb: introduce msgb->cb (the control buffer)Harald Welte1-0/+4
2010-04-30gsm_04_11.c: Use msgb->l4h instead of sms->smsh, as the latter is goneHarald Welte1-1/+1
2010-04-30msgb: remove smsh, llch, tlli and gmmhHarald Welte2-12/+3
This is a lot of GSM/GPRS specific stuff in struct msgb which we want to avoid. The 'control buffer' will replace them.
2010-04-30remove the unneeded bts_link pointer from msgbHarald Welte2-6/+0
2010-04-30remove any reference to 'struct gsm_bts_link'Harald Welte2-7/+0
2010-04-30[misc] Remove spaces, fix indention.Holger Hans Peter Freyther4-7/+7
2010-04-30[vty] Free the matched at the end of the routine.Holger Hans Peter Freyther1-4/+0
Remove the return from the case labels and cleanup at the end matched array at the end of the routine.
2010-04-30[vty] Plug memory leak on auto completion.Holger Hans Peter Freyther1-1/+3
I assume the original code crashed with a double free as we have a cleanup at the end of the method. Return from the routine like the case label below. This is fixing a memory leak I am experimenting.
2010-04-30[vty] Allow to create a buffer in a given context.Holger Hans Peter Freyther4-6/+6
Stop using the global vty context for all allocations and allow to embed the buffer into a given context, and allocate sub buffers with the context of its parent.
2010-04-30[vty] Move some allocations into the context of the vty.Holger Hans Peter Freyther1-5/+5
2010-04-30[vty] Remove FIXME as it appears to do the right thing.Holger Hans Peter Freyther1-2/+1
2010-04-28bsc_init: Fix ccch description in SI messagesSylvain Munaut1-2/+28
The previous code just hardcoded RSL_BCCH_CCCH_CONF_1_C, but we need to inspect the timeslot config to know what to use. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-28Update .gitignoreSylvain Munaut1-0/+5
m4/*.m4 -> autoreconf adds stuff there tests -> Build product Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-28gsm 08.08: Fix some u_int8_t -> uint8_tSylvain Munaut2-7/+7
This breaks the ARM build in osmocom-bb. Besides uint??_t seems to be the preferred type in osmocore. (coming from stdint.h vs sys/types.h) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-27gsm_utils: Just add some constant and timekeeping utilsSylvain Munaut1-0/+7
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
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-04-25[vty] Allow to set the RACH NM attributes on a per BTS basisHolger Hans Peter Freyther4-0/+51
Be able to tune the RACH settings of the BTS via the vty interface, by default they are initialized to -1 which means we will use the content of the static array (BTS default) and can be changed via the VTY interface. I have verified the setting on the nanoBTS with wireshark and I have tested writing the config file.
2010-04-25Merge branch 'on-waves/sccp'Holger Hans Peter Freyther3-53/+100
2010-04-25[sccp] Move from DEBUGP to LOGP in sccp.cHolger Hans Peter Freyther1-52/+54
2010-04-25[sccp] Parse the error message and add a unit test for it.Holger Hans Peter Freyther3-1/+46
2010-04-25Merge branch 'on-waves/mgcp'Holger Hans Peter Freyther4-0/+56
2010-04-25[mgcp] Possible memleak fix for the allowed reallocation caseHolger Hans Peter Freyther1-0/+1
When allowing to reallocate an allocated endpoint we will need to free it first. When freeing we will free the call id and other ids that we would have leaked otherwise.
2010-04-25[mgcp] Add a change callback and send a dummy packet on MDCX.Holger Hans Peter Freyther1-0/+10
Send a dummy packet to make sure our Gateway will discover us and can send the ringtone to us.
2010-04-25[mgcp] Ignore every dummy packet...Holger Hans Peter Freyther1-7/+7
This routine should operate on different packets and the dummy load is smaller than a legitimate RTP header so it is unlikely we will filture out genuine traffic. The reason is the dummy load might be send more than once.
2010-04-25[mgcp] Protocol extension to not generate answers.Holger Hans Peter Freyther1-0/+24
For the NAT we want to send requests in a send and forget way and we are not interested in seeing the answers, so tell the gateway to not answer them.