summaryrefslogtreecommitdiffstats
path: root/openbsc/include
Commit message (Collapse)AuthorAgeFilesLines
* libctr: rename/move control interface to libosmocore naming schemeHarald Welte2014-08-212-208/+0
|
* ctrl: Use CTRL_CMD_DEFINE_STRUCT in CTRL_CMD_DEFINE_RANGEHolger Hans Peter Freyther2014-08-211-6/+1
| | | | | Jacob pointed out that I didn't convert CTRL_CMD_DEFINE_RANGE. This patch is doing it now.
* ctrl: Reduce code duplication and add a define to create the structHolger Hans Peter Freyther2014-08-211-13/+10
| | | | | | This has been pointed out by Jacob and removes two more duplicates of the struct. For the unused CTRL_CMD_DEFINE_STRING macro there will be no verify command.
* ctrl: Remove the param parameter as it was never used/implementedHolger Hans Peter Freyther2014-08-211-4/+0
|
* ctrl: Introduce a macro for read-only attributes and use itHolger Hans Peter Freyther2014-08-211-0/+14
| | | | | Certain attributes are read-only. Add a macro to make it more easy to define those.
* ipa: Use enhanced ipa_msg_recv_buffered() to cope with partioned IPA messagesJacob Erlbeck2014-08-211-0/+3
| | | | | | | | | | | | | | The old ipa_msg_recv() implementation didn't support partial receive, so IPA connections got disconnected when this happened. This patch adds the handling of the temporary message buffers and uses ipa_msg_recv_buffered(). It has been successfully tested by jerlbeck with osmo-nitb and osmo-bsc. Ticket: OW#768 Sponsored-by: On-Waves ehf
* ctrl: Move the lookup into a separate file in preparation for GPRSHolger Hans Peter Freyther2014-08-212-3/+10
| | | | | | For GPRS the look-up via bts/trx does not make any sense and would introduce bad depdencies for the SGSN. Move the look-up code to a new file and introduce new setup methods.
* ctrl: Make it possible to re-use the string get and set routineHolger Hans Peter Freyther2014-08-211-3/+7
| | | | | This can be used for the description field that requires some special handling for newlines.
* ctrl: Make the int range set, get and verify methods availableHolger Hans Peter Freyther2014-08-211-4/+12
| | | | | | For the max power reduction we will need to have a different range method. It will need to check if the value is even. Make the set, get and verify methods available through a macro.
* ctrl: Provide a reply in case the range check failedHolger Hans Peter Freyther2014-08-211-0/+1
|
* ctrl: Make the commands static to not pollute the namespaceHolger Hans Peter Freyther2014-08-211-3/+3
| | | | | We do not need to access these commands from another compilation unit and can just make it static.
* ctrl: Work on the cmd->node instead of the data pointer passedHolger Hans Peter Freyther2014-08-211-9/+9
| | | | | | Make the macros use the cmd->node instead of the data pointer. The naming of the variable inside the macro already indicates that it should use the nodes data structure.
* ctrl: Fix the signature of the string control commandsHolger Hans Peter Freyther2014-08-211-2/+7
| | | | | | | | Like with all type unsafe callbacks we will need to cast from void to the dtype. This addresses some compiler warnings. Make it possible to only include the control_cmd.h to use the macros defined in this file.
* libctrl, osmo-bsc: Get rid of net prefixDaniel Willmann2014-08-211-1/+0
| | | | net is now implicit in the root node
* libctrl: Add function ctrl_cmd_send_to_allDaniel Willmann2014-08-211-0/+3
| | | | | Sends a command to all ctrl connections except the one it originated from.
* libctrl: Add trap helper functionDaniel Willmann2014-08-211-0/+1
|
* libctrl: Change controlif_setup so it returns the ctrl handleDaniel Willmann2014-08-212-2/+9
| | | | | | | nat: Catch up with controlif_setup API change We now save a control handle reference in the nat osmo-bsc: Catch up with controlif_setup API change We now save a control handle reference in the gsm network
* fix some "implicit declaration" warnings in osmo-nitbAlexander Huemer2014-08-211-0/+13
|
* libctrl: Add a function to create the cmdHolger Hans Peter Freyther2014-08-211-0/+1
|
* libctrl: Mark the cmd set/get/verify functions staticDaniel Willmann2014-08-211-8/+8
|
* controlif: declare controlif_setup() in control_cmd.hHarald Welte2014-08-211-0/+3
| | | | | this avoids us to copy+paste external declarations over all 'main' files.
* libctrl: Add ctrl_cmd_cpy() to copy a commandDaniel Willmann2014-08-211-0/+1
|
* libctrl: Add macros to help define commandsDaniel Willmann2014-08-211-0/+69
|
* Add libctrl, an SNMP-like control interfaceDaniel Willmann2014-08-211-0/+81
| | | | | | In contrast to the VTY interface the control interface is meant to be used by programs. This patch adds basic support, no commands are defined.
* libosmogb: move files to proper location and fix buildHarald Welte2012-06-178-635/+0
|
* libgb: separate header files related to spec and implementationHarald Welte2012-06-176-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.
* libgb: make sure all BSSGP functions have bssgp_ prefixHarald Welte2012-06-171-7/+7
| | | | | We change the minority of functions employing the gprs_bssgp_ prefix to match with the majority without gprs_ in front.
* libgb/gprs: don't use log_info from libcommon anymoreHarald Welte2012-06-171-0/+3
|
* libgb: prefix all NS related functions with gprs_Harald Welte2012-06-171-9/+10
|
* libgb: don't call directly into GMM / LLC layerHarald Welte2012-06-171-0/+37
| | | | | | 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()"
* libgb: remove dependency of BSSGP to include sgsn/gmm internal structsHarald Welte2012-06-171-2/+15
|
* libgb: Remove dependency to openbsc/debug.hHarald Welte2012-06-163-0/+7
|
* libgb: Use library SS_L_NS instead lf local SS_NSHarald Welte2012-06-161-1/+13
| | | | | which removes some further dependencies of libgb to openbsc internal code and data.
* libgb: move GPRS specific msgb CB definitions to separate headerHarald Welte2012-06-164-1/+33
|
* split libgb into a separate library for outside useHarald Welte2012-06-164-0/+5
| | | | | This also removes the dependency to osmo_sock() inside libcommon and replaces it with osmo_sock_* from libosmocore
* misc: Deal with smatch warnings about the bitfieldsHolger Hans Peter Freyther2012-03-021-1/+1
| | | | Use unsigned ints for the bitfield.
* BSSGP: Add functions required for true BSS-side BSSGP implementationHarald Welte2011-11-251-1/+15
| | | | | | | | | The BSS-side of BSSGP requires quite a number of additional functions for sending unidirectional messages that a SGSN never sends. This is a first step into completing the BSSGP implementation and making it ready to be used from osmo-bts and other BTS-side GPRS implementations.
* BSSGP: add more doxygen commentsHarald Welte2011-11-251-25/+29
|
* GPRS NS: Add some doxygen API documentationHarald Welte2011-11-241-17/+33
|
* gb_proxy: Make sure each parameter has some sort of documentationHolger Hans Peter Freyther2011-11-061-0/+2
|
* src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso2011-05-061-2/+2
| | | | | | | | | Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
* src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso2011-05-061-1/+1
| | | | | | | | | | | | | | Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
* src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso2011-03-232-5/+5
| | | | | | | | | | | libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
* GPRS: Increase the NS msg size to 2048Holger Hans Peter Freyther2010-06-141-1/+1
| | | | | | | According to the GPRS NS spec the maximum framesize is 1600 octets for FrameRelay, it can be bigger if configured to be so. Make it 2048 octets to have some space available...
* [GPRS] BSSGP/SGSN: Implement Gb-Interface PagingHarald Welte2010-06-101-0/+27
| | | | | | | | | | | | | | | | We now have a function that generates BSSGP PS and CS paging request. It is called from the libgtp code when we receive a GTP packet from the GGSN for a MM context that is in SUSPEND state. We then issue a PS paging request to the Cell with the BVCI where the last RA update was being performed. TODO: We still don't enqueue the GTP packet (and transmit it on paging complete), and we don't rate-limit the paging requests, i.e. every GTP packet will trigger another paging request. We probably also need some kind of logic that marks the phone as UNREGISTERED if it doesn't respond to paging requests for some time.
* [GPRS] Include IMSI and DRX params in BSSGP DL-UDHarald Welte2010-05-311-1/+2
| | | | | | | | | When we send a downlink unit-data request via BSSGP, there is a lot of information that needs to be copied from the mm context, such as the IMSI, DRX parametes, MS radio access parameters, ... This is a quite strange layering violation, since we now need to pass a pointer to the MM ctx from GMM through LLC into BSSGP :(
* gprs_ns_frgre.h: Create the header and include itHolger Hans Peter Freyther2010-05-231-0/+6
|
* gprs: Fix warnings on funny casts for the return statementHolger Hans Peter Freyther2010-05-231-1/+1
| | | | | | | | Change gprs_nsvc_reset to return void instead of a int as the gb_proxy.c currently ignores the reutnr value anyway. Change the caller inside gprs_ns to return the newly allocated nsvc instead of the return of gprs_nsvc_reset.
* [GPRS] NS: Make sure we allocate NS packet with headroom for FR/GREHarald Welte2010-05-191-1/+5
|
* [GPRS] NS: VTY: Move all local ip/port bind values into 'ns' nodeHarald Welte2010-05-191-2/+6
| | | | | This removes the requirement for gb_proxy and sgsn to have duplicate vty parsing code