diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 361 | ||||
-rw-r--r-- | debian/compat | 2 | ||||
-rw-r--r-- | debian/control | 41 | ||||
-rw-r--r-- | debian/copyright | 20 | ||||
-rwxr-xr-x | debian/osmo-gbproxy.init | 151 | ||||
-rw-r--r-- | debian/osmo-gbproxy.install | 5 | ||||
-rwxr-xr-x | debian/rules | 1 |
7 files changed, 378 insertions, 203 deletions
diff --git a/debian/changelog b/debian/changelog index 2827f43b0..cb629fbdc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,364 @@ +osmo-sgsn (1.11.1) unstable; urgency=medium + + [ Philipp Maier ] + * sgsn_rim: forward message based on RIM ROUTING ADDRESS + + [ Daniel Willmann ] + * sgsn_vty: Fix output in config_write_sgsn + * sgsn_vty: Correctly indent encryption cipher-plugin-path + * vty-tests: Test encryption options + * libgtp: Check for all successful create_pdp_conf causes + + -- Oliver Smith <osmith@sysmocom.de> Tue, 28 Nov 2023 13:32:46 +0100 + +osmo-sgsn (1.11.0) unstable; urgency=medium + + [ Oliver Smith ] + * Run struct_endianness.py + * debian: set compat level to 10 + * systemd: depend on networking-online.target + + [ arehbein ] + * Transition to use of 'telnet_init_default' + + [ Vadim Yanitskiy ] + * tests: use -no-install libtool flag to avoid ./lt-* scripts + * tests: $(BUILT_SOURCES) is not defined, depend on osmo-sgsn + * copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH + + [ Pau Espin Pedrol ] + * gmm: Ciphering Key Sequence Number IE has half octet tag + * gprs_sm.c: Fix load of misaligned ptr address + * Write explicit role & sctp-role fields in ASP configurations + * gmm: Update DRX params during rx RAU REQ + * gmm: Add missing GSM48_IE_GMM_RX_NPDU_NUM_LIST IE in gsm48_gmm_att_tlvdef + + [ Philipp Maier ] + * sgsn_rim: fix typo + * sgsn_rim: cosmetic: improve comment + * sgsn_rim: get rid of MME check in sgsn_rim_rx_from_gtp: + * sgsn_rim: do not check the origin of a RIM message + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 12 Sep 2023 16:57:02 +0200 + +osmo-sgsn (1.10.0) unstable; urgency=medium + + [ Vadim Yanitskiy ] + * configure.ac: do not require unused dlsym/dlopen + * gprs_llc: fix misleading spacing in gprs_llc_rcvmsg() + * gprs_llc.h: use '#pragma once' + * llc: gprs_llc_fcs(): make the input data pointer const + + [ Max ] + * Set working directory in systemd service file + * SNDCP: log more details on failure + * GTP: migrate from deprecated function + * Constify LLC/SNDCP parameters + * GMM: permit E_GMM_COMMON_PROC_SUCCESS in normal state + * ctrl: take both address and port from vty config + + [ Pau Espin Pedrol ] + * vty: Make new libgtp tdefs configurable through VTY + * sndcp: Put decompress handling code into helper function + * Move gprs_gb_parse.[c,h] to tests/sgsn/ + * Create new specific file for BSSGP code + * Move some functions gprs_gb.[c,h] -> gprs_gmm.[c,h] + * Rename gprs_gb.[c,h] -> gprs_ns.[c,h] + * Move gprs_tmr_to_secs() to tests/gprs/gprs_test.c + * cosmetic: gprs_llc_vty.c: Fix trailing whitespace + * vty: Fix wrong value_string used to print llme state + * Standarize lle and llme state enum & value_string + * Remove unused function gprs_parse_mi_tmsi() + * Replace gprs_str_to_apn() with libosmocore API osmo_apn_from_str() + * Move struct sgsn_ggsn_ctx to its own file gtp_ggsn.{c,h} + * gprs_subscriber: Move API declarations to correct header + * Move gprs_sndcp_vty_init() declaration to gprs_sndcp.h + * Introduce new header file sgsn/gtp.h + * Fix -Werror=old-style-definition + * Move related structs to gprs_subscriber.h + * Remove unneeded extern declaration from libosmocotrl + * Keep sgsn subsystems under struct sgsn_instance lifecycle + * Move global ggsn_list into struct sgsn_instance + * Move struct apn_ctx and APN related definitions to its own file + * Move struct sgsn_subscriber_pdp_data to gprs_subscriber.h + * sgsn.h: Drop declaration of non existing function + * Properly split llc->sndcp->gtp unitdata pathi through extra func call + * Move func defintions of funcs implemented in gprs_sndcp.c to gprs_sndcp.h + * sndcp: Standarize unitdata function naming + * Move gtp related functions to gtp.h + * Move global apn_list inside struct sgsn_instance + * gtp_{ggsn,mme}: Allocate contexts under struct sgsn_instance + * Move extern declarations of tall_sgsn_ctx to sgsn.h + * Drop extern declarations of global sgsn_instance in source files + * Move sgsn_pdp_ctx to its own file pdpctx.{c,h} + * Move global pdp_list inside struct sgsn_instance + * Move gtphub header to include/osmocom/gtphub/ + * Move sgsn_ctrl_cmds_install() declaration to sgsn.h + * Move LOGGSUBSCRP to gprs_subscriber.h + * Rename bscconfig.h -> config.h + * gtphub.h: Remove dependency on sgsn/gprs_sgsn.h + * Split gprs_sgsn.{c,h} -> {auth,mmctx,sgsn}.{c,h} + * Move global mmctx list into struct sgsn_instance + * vty: Introduce encryption cipher-plugin-path command + * Fix extra whitespace in pdpctx_ctr_description + + [ Oliver Smith ] + * contrib/jenkins.sh: use enable-werror with IU too + * sgsn_libgtp: cb_data_ind: remove mm_idle assert + * osmo-gtphub.cfg: fix conflict with osmo-ggsn.cfg + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 07 Feb 2023 17:34:26 +0100 + +osmo-sgsn (1.9.0) unstable; urgency=medium + + [ Oliver Smith ] + * llme_free: clean up related sndcp + * treewide: remove FSF address + + [ Pau Espin Pedrol ] + * Drop unneeded ax_check_compile_flag.m4 + * Revert "sgsn: Handle different levels of QoS" + + [ Neels Hofmeyr ] + * s/cipher_support_mask/gea_encryption_mask + * Iu: add UEA encryption + + [ Vadim Yanitskiy ] + * tests: use 'check_PROGRAMS' instead of 'noinst_PROGRAMS' + + [ Harald Welte ] + * update git URLs (git -> https; gitea) + * README: Major update + + -- Pau Espin Pedrol <pespin@sysmocom.de> Wed, 29 Jun 2022 11:45:08 +0200 + +osmo-sgsn (1.8.0) unstable; urgency=medium + + [ Harald Welte ] + * Remove bogus DNS log category + + [ Daniel Willmann ] + * manuals: Regenerate counters/VTY through docker + + [ Vadim Yanitskiy ] + * main: resurrect removed 'ns' logging category as deprecated + * doc/manuals: update configuration.adoc to use new command syntax + * tests/Makefile.am: do not try removing non-existing files + + [ Pau Espin Pedrol ] + * ranap: log ranap iu event type name instead of number + * gmm: log GMM msg type name instead of number + * gmm: Expect E_VLR_ANSWERED when in ST_IU_SECURITY_CMD + * gmm_fsm: Expect E_GMM_COMMON_PROC_INIT_REQ when in ST_GMM_COMMON_PROC_INIT + * mm_iu: Send event E_PMM_PS_CONN_ESTABLISH upon rx GMM SERVICE REQUEST + * mm_iu: Expect E_PMM_PS_ATTACH when in ST_PMM_IDLE + * gprs_gmm.c: State proper GMM prefix logging rx/tx of GMM messages + * mm_state_iu_fsm: T3314 expiry must lead to PMM IDLE, not PMM DETACHED + * Iu: Drop timer X3314 + * gprs_ranap.c: Clean up code path releasing IU conn + * mm_state_{gb,iu}_fsm: Add missing license block, improve spec references + * mm_state_{gb,iu}_fsm: Improve naming for detach event + * Drop unused GBRPOXY enum field + * gtp: Delete ctx upon receive UpdateCtxResp with cause Non-existent + * Support forwarding RIM messages over GTPCv1 EUTRAN<->GERAN + * Use new stat item/ctr getter APIs + + [ Keith ] + * vty: Fix optional display of pdp with mm-context + * VTY: Don't display 'PDP Address: invalid' for IPv4v6 + + [ Eric ] + * add support for multiple encryption algorithms and a5/4 + + [ Oliver Smith ] + * gtphub: remove llist_first, llist_last macros + * vty: add "page imsi" + * debian/control: remove dh-systemd build-depend + * Revert "Turn some compiler warnings into errors" + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 16 Nov 2021 17:57:50 +0100 + +osmo-sgsn (1.7.0) unstable; urgency=medium + + [ Daniel Willmann ] + * gprs_gmm: Check for RAT change and ensure this only happens for RAU/ATT + * gbproxy-usermanual: Explain BSSGP/BVC handling + * gbproxy: Whitespace fixes + * gbproxy: Add todo for BVC RESET logic + * gbproxy: Get the peer if paging by BVCI on SIG_BVC + * Let libosmocore handle VTY parent node tracking + * osmo-gbproxy: Free msgb in ns2 prim callback + * configure.ac: Require python3 for ext_tests + * osmo-gbproxy: Implement nsvc-state ctrl command + * gbproxy: Remove test testing NSVCI change + * gbproxy: Add NSE peer that can have multiple gbproxy_peers + * gbproxy: Ensure BVC0 is reset before handling PtP BVCs + * gbproxy: Only send paging to each matching NSE once + * gbproxy: Separate function to move gbproxy_peer to different nse + * gbproxy: Add logging macros for NSE and BVC + * gbproxy: Use LOG macros for NSE/BVC + * gbproxy: Change generic LOG messages so BVCI/NSEI fmt is consistent + * gbproxy: Add todos encountered while going through the code + * gbproxy: Add BVC log filters + * gbproxy: Add newline to log message + * gbproxy: Allow gbproxy_nse_free(NULL) + * gbproxy: Delete gbproxy_nse in delete-gbproxy-peer VTY command + * mm_state_gb_fsm: Handle implicit detach from mm_standby + * gbproxy: Fix bvci check in gbprox_rx_ptp_from_* + * osmo-gbproxy: Initialize all hash_maps + * gbproxy: Fix confusing log message in gbprox_relay2nse + * gbproxy: Add SGSN NRI configuration + * gbproxy: Add SGSN pooling support + * gbproxy: Add comments to sgsn functions + * gbproxy: Add config option to name an SGSN + * gbproxy: Add VTY command to override the node selection function + * Fix gbproxy_sgsn_by_tlli wraparound + * gbproxy: Implement TLLI cache and use it for SUSPEND/RESUME + * gbproxy: Increase TLLI cache timeout to 10s + * gbproxy: Implement IMSI cache + * gbproxy: Use IMSI cache to handle PAGING_PS_REJECT + * gbproxy: Use C-style comments + * gbproxy: Move helper function to a more logical place + * gbproxy: Remove unused variable assignment + * gbproxy: Fix VTY cmd name + * gbproxy: Define and use help string for gbproxy + * gbproxy: Add VTY commands to query the TLLI/IMSI cache + * gbproxy: Use IMSI cache for PTP paging and implement DUMMY_PAGING_PS + * gbproxy: Print the correct message type for dummy paging/paging reject + * gbproxy: Improve log messages in gbproxy_select_sgsn + * gbproxy: Fix radio status routing by TMSI + * manual/gbproxy: Update overview chapter + * Rename OsmoGbPROXY -> *Proxy + * manuals/gbproxy: Update configuration chapter + * manuals/gbproxy: Add osmo-bsc MSC pooling chapter from Neels as a base + * manuals/gbproxy: MSC -> SGSN for pooling chapter + * manuals/gbproxy: Move pooling to separate chapter + + [ Alexander Couzens ] + * gprs_gmm_fsm.c: Implement RAT change between 2g and 3g + * gtphub: rename sgsn's oww osmo_sockaddr into sgsn_sockaddr + * gprs_llc: _bssgp_tx_dl_ud: ensure the LLME is valid before using it + * gmm: on invalid RA id reject the MS with an implicit detach + * gtphub_test: fix compilation error on gcc 10.2.0 + * gtphub: fix compilation with gcc 10.2.0 + * Port gbproxy to NS2 + * sgsn: check for NULL of gprs_subscr_get_or_create() + * sgsn: Use the new NS2 api + * gbproxy: use ns2 vty2 + * configure.ac: define a c standard instead of using the compilers default + * follow libosmocore/gprs_ns2 API changes of GPRS enums + * gbproxy: follow gprs_ns2 API vty changes + * sgsn: migrate to the new gprs_ns2_vty configuration + * follow libosmocore/gprs_ns2 API changes (gprs_ns2_dynamic_create_nse) + + [ Neels Hofmeyr ] + * manual: explain IuPS, add SCCP/M3UA section from common chapters + * fix nullpointer: in gsm48_rx_gmm_ra_upd_req() + * gsup: send RAT type on LU + * gbproxy_test.c: fix mobile identity test data + * use new osmo_mobile_identity API everywhere + + [ Eric ] + * tests: dlopen does not imply availability of dlsym.. + * configure.ac: fix libtool issue with clang and sanitizer + + [ Harald Welte ] + * gtphub_test: Fix compilation with gcc-10 + * Fix memory leak when SNDCP de-fragmentation is used + * Treat RAU as implicit RESUME if GMM is suspended + * *.spec.in: Use %config(noreplace) to retain current config file + * Send a BVC-RESET to all persistent Gb interfaces at start-up + * Use osmo_fd_setup() whenever applicable + * Use osmo_fd_*_{disable,enable} + * gbproxy: Properly implement paging to LAC/RAC + * gbproxy: Implement paging to entire BSS area + * gprs_gb_parse: Add function to determine TLLI from encoded BSSGP + * gbproxy: Pass TLLI as LSP towards NS to facilitate load sharing + * gb_proxy_peer: Add some FIXMEs regarding invalid assumptions + * gb_proxy: More precise + readable log messages + * gb_proxy: Broadcast SGSN-INVOKE-TRACE and OVERLOAD + * gbproxy: Move BSS-side BVC-RESET processing to its own function + * gb_proxy: Slightly restructure processing of BSS-originated BVC-RESET + * gbproxy: Cosmetics: use longer lines + * gbproxy: Send BVC-STATUS if BSS sends us BVC-RESET without mandatory IEs + * gb_proxy: Use TLVP_PRES_LEN instead of TLVP_PRESENT + * gb_proxy: Rename gbproxy_peer to gbproxy_bvc + * gbproxy: Rename gbproxy_cfg.nses to gbproxy_cfg.bss_nses + * gbproxy: convert bss_nses from llist_head to hashtable + * gbproxy: convert nse->bvcs from llist_head to hashtable + * gbproxy: Remove patching, TLLI-tracking and SGSN2 support + * gb_proxy: cosmetic: Use function rather than open-coding is_sgsn + * gbproxy: Delete gbproxy_test + * gb_proxy: Introduce more validation / constraint checks + * gbproxy: use gbprox_relay2peer() whenever possible + * gb_proxy: Use osmo_tlv_prot_parse() to validate mandatory IEs + * gbproxy: Log FSM timeouts + * migrate to DLBSSGP as log sub-system for BSSGP + * gbproxy major rewrite for SGSN pool support + * gbproxy: Use "(nsei << 16) | bvci" as rate_ctr_group index + * gbproxy: Introduce new DOBJ log category; log object allocation/release + * gbproxy: Don't create an extra msgb copy for SGSN DL SIG + * gbproxy: Implement handling of BVC Flow Control + * gbproxy: Copy RA-ID from BSS side BVC to CELL and SGSN-side BVC + * gbproxy: (Re)allocate SGSN-side PTP BVC even if CELL already exists + * gbproxy: Fix segfault when receiving PAGING for unknown destination + * gbproxy: Add FSM related VTY commands + * gbproxy: Implement scaling of BVC flow control in SGSN pool + * gbproxy: Improve VTY state introspection + * gbproxy: rename vty command "show gbproxy ..." to "show gbproxy bvc ..." + * gbproxy: Add "show gbproxy cell ..." VTY command + * gbproxy: Fix build on Deiban 8 + * gb_proxy: Don't use orphan log subsystem DPCU + * gbproxy: Avoid depending on any of the SGSN code + * main: add --vty-ref-mode, use vty_dump_xml_ref_mode() + * manuals: generate vty reference xml at build time + + [ Pau Espin Pedrol ] + * Use OSMO_FD_* instead of deprecated BSC_FD_* + * sgsn_libgtp: Improve ps-paging logging + * gprs_gmm_fsm.c: Add missing license header + * sgsn_libgtp: Avoid ps-paging MS on GMM Suspended state + * configure.ac: Fix trailing whitespace + * doc: Update VTY reference xml file + * Support setting rt-prio and cpu-affinity mask through VTY + * Change default SCTP conn NULL->127.0.0.1 to localhost->localhost + * contrib/jenkins: Enable parallel make in make distcheck + * Log error if pdp ctx is freed while holding an active timer + * Fix crash rx DeactPdpReq while waiting for DeactPdpAck after gtp side is freed + * sgsn_delete_pdp_ctx: Add documentation and assert assumptions + * process_ms_ctx_status: refactor to avoid code duplication + * process_ms_ctx_status: Fix crash deleting PDP Ctx if GTP side was already released + * gbproxy: generate coredump and exit upon SIGABRT received + * gtphub: generate coredump and exit upon SIGABRT received + * sgsn: generate coredump and exit upon SIGABRT received + * gmm: fix build without define PTMSI_ALLOC + * gmm: Introduce comment to ease addition of Network feature support IE later + * .gitignore: Ignore new autofoo tmp files + * sndcp: Fix struct bit fields on big endian + * Fix nsei+bvci not updated on rx UL SNDCP data + + [ Oliver Smith ] + * contrib: import RPM spec + * contrib: integrate RPM spec + * Makefile.am: EXTRA_DIST: debian, contrib/*.spec.in + * contrib/jenkins: don't build osmo-gsm-manuals + * gbproxy: remove (moved to own repository) + + [ Vadim Yanitskiy ] + * debian/control: change maintainer to the Osmocom team / mailing list + * gb_proxy_peer: sgsn can never be NULL in gbproxy_sgsn_by_nri() + * gb_proxy_peer: fix NULL pointer dereference in gbproxy_sgsn_alloc() + + [ Keith ] + * Fix Radio Priority in MM Attach and PDP Context Activation + * VTY: Add gtp state-dir command + + [ Philipp Maier ] + * gprs_sndcp: fix use after free + * sgsn_rim: Add routing for (GERAN) BSSGP RIM messages + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 23 Feb 2021 20:29:33 +0100 + osmo-sgsn (1.6.0) unstable; urgency=medium [ Pau Espin Pedrol ] diff --git a/debian/compat b/debian/compat index ec635144f..f599e28b8 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +10 diff --git a/debian/control b/debian/control index e512c8fb6..aa594553b 100644 --- a/debian/control +++ b/debian/control @@ -2,9 +2,8 @@ Source: osmo-sgsn Section: net Priority: extra Maintainer: Osmocom team <openbsc@lists.osmocom.org> -Build-Depends: debhelper (>=9), +Build-Depends: debhelper (>= 10), dh-autoreconf, - dh-systemd (>= 1.5), autotools-dev, autoconf, automake, @@ -12,19 +11,19 @@ Build-Depends: debhelper (>=9), pkg-config, libtalloc-dev, libc-ares-dev, - libgtp-dev (>= 1.5.0), - libosmocore-dev (>= 1.4.0), - libosmo-abis-dev (>= 0.6.0), - libosmo-netif-dev (>= 0.4.0), - libosmo-gsup-client-dev (>= 1.0.0), + libgtp-dev (>= 1.11.0), + libosmocore-dev (>= 1.9.0), + libosmo-abis-dev (>= 1.5.0), + libosmo-netif-dev (>= 1.4.0), + libosmo-gsup-client-dev (>= 1.7.0), libasn1c-dev (>= 0.9.30), - libosmo-ranap-dev (>= 0.6.0), - libosmo-sigtran-dev (>= 1.0.0), - libosmo-sccp-dev (>= 1.0.0), - osmo-gsm-manuals-dev + libosmo-ranap-dev (>= 1.5.0), + libosmo-sigtran-dev (>= 1.8.0), + libosmo-sccp-dev (>= 1.8.0), + osmo-gsm-manuals-dev (>= 1.5.0) Standards-Version: 3.9.8 -Vcs-Git: git://git.osmocom.org/osmo-sgsn.git -Vcs-Browser: https://git.osmocom.org/osmo-sgsn +Vcs-Git: https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn +Vcs-Browser: https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn Homepage: https://projects.osmocom.org/projects/osmo-sgsn @@ -53,22 +52,6 @@ Priority: extra Depends: osmo-gtphub (= ${binary:Version}), ${misc:Depends} Description: Debug symbols for Osmocom GTP Hub -Package: osmo-gbproxy -Architecture: any -Depends: ${shlibs:Depends}, - ${misc:Depends} -Recommends: osmo-sgsn -Description: Osmocom GPRS Gb Interface Proxy - The purpose of the Gb proxy is to aggregate the Gb links of multiple - BSS's and present them in one Gb link to the SGSN. - -Package: osmo-gbproxy-dbg -Architecture: any -Section: debug -Priority: extra -Depends: osmo-gbproxy (= ${binary:Version}), ${misc:Depends} -Description: Debug symbols for Osmocom GPRS Gb Interface Proxy - Package: osmo-sgsn-doc Architecture: all Section: doc diff --git a/debian/copyright b/debian/copyright index fa7405fed..cd8d7e84c 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,6 +1,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: osmo-sgsn -Source: git://git.osmocom.org/osmo-sgsn +Source: https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn Files: .gitignore .gitreview @@ -19,13 +19,10 @@ Files: .gitignore contrib/ipa.py contrib/jenkins.sh contrib/soap.py - contrib/systemd/osmo-gbproxy.service contrib/systemd/osmo-sgsn.service contrib/twisted_ipa.py doc/Makefile.am doc/examples/Makefile.am - doc/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg - doc/examples/osmo-gbproxy/osmo-gbproxy.cfg doc/examples/osmo-gtphub/gtphub-example.txt doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg doc/examples/osmo-gtphub/osmo-gtphub.cfg @@ -36,7 +33,6 @@ Files: .gitignore include/osmocom/sgsn/crc24.h include/osmocom/sgsn/debug.h include/osmocom/sgsn/gb_proxy.h - include/osmocom/sgsn/gprs_gb_parse.h include/osmocom/sgsn/gprs_gmm.h include/osmocom/sgsn/gprs_llc.h include/osmocom/sgsn/gprs_sgsn.h @@ -51,13 +47,12 @@ Files: .gitignore src/gprs/osmo_sgsn.cfg tests/Makefile.am tests/atlocal.in - tests/gbproxy/Makefile.am - tests/gbproxy/gbproxy_test.ok tests/gprs/Makefile.am tests/gprs/gprs_test.c tests/gprs/gprs_test.ok tests/gtphub/Makefile.am tests/gtphub/gtphub_test.ok + tests/sgsn/gprs_gb_parse.h tests/sgsn/Makefile.am tests/sgsn/sgsn_test.ok tests/slhc/Makefile.am @@ -79,19 +74,12 @@ Files: include/osmocom/sgsn/a_reset.h include/osmocom/sgsn/gprs_sndcp_pcomp.h include/osmocom/sgsn/gprs_sndcp_xid.h include/osmocom/sgsn/gprs_utils.h - include/osmocom/sgsn/gtphub.h + include/osmocom/gtphub/gtphub.h include/osmocom/sgsn/signal.h src/gprs/gprs_llc_parse.c src/gprs/crc24.c - src/gprs/gprs_gb_parse.c src/gprs/gprs_utils.c src/gprs/sgsn_ares.c - src/gbproxy/gb_proxy.c - src/gbproxy/gb_proxy_main.c - src/gbproxy/gb_proxy_patch.c - src/gbproxy/gb_proxy_peer.c - src/gbproxy/gb_proxy_tlli.c - src/gbproxy/gb_proxy_vty.c src/gtphub/gtphub.c src/gtphub/gtphub_main.c src/gtphub/gtphub_vty.c @@ -114,6 +102,7 @@ Files: include/osmocom/sgsn/a_reset.h src/sgsn/sgsn_main.c src/sgsn/sgsn_vty.c tests/gtphub/gtphub_test.c + tests/sgsn/gprs_gb_parse.c tests/sgsn/sgsn_test.c tests/slhc/slhc_test.c tests/sndcp_xid/sndcp_xid_test.c @@ -142,7 +131,6 @@ License: AGPL-3.0+ Files: src/gtphub/gtphub_ares.c src/gtphub/gtphub_sock.c - tests/gbproxy/gbproxy_test.c Copyright: 2013 Jacob Erlbeck <jerlbeck@sysmocom.de> 2013 sysmocom s.f.m.c. GmbH 2014 Holger Hans Peter Freyther diff --git a/debian/osmo-gbproxy.init b/debian/osmo-gbproxy.init deleted file mode 100755 index 924f32d10..000000000 --- a/debian/osmo-gbproxy.init +++ /dev/null @@ -1,151 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: osmo-gbproxy -# Required-Start: $network $local_fs -# Required-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Osmocom GBproxy -# Description: A tool to proxy the GPRS Gb interface. -### END INIT INFO - -# Author: Harald Welte <laforge@gnumonks.org> - -# PATH should only include /usr/* if it runs after the mountnfs.sh script -PATH=/sbin:/usr/sbin:/bin:/usr/bin -NAME=osmo-gbproxy # Introduce the short server's name here -DESC="Osmocom GBProxy" # Introduce a short description here -DAEMON=/usr/bin/osmo-gbproxy # Introduce the server's location here -SCRIPTNAME=/etc/init.d/osmocom-gbproxy -CONFIG_FILE=/etc/osmocom/osmocom-gbproxy.cfg - -# Exit if the package is not installed -[ -x $DAEMON ] || exit 0 - -# Read configuration variable file if it is present -[ -r /etc/default/osmocom-gbproxy ] && . /etc/default/osmocom-gbproxy - -# Load the VERBOSE setting and other rcS variables -. /lib/init/vars.sh - -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions - -DAEMON_ARGS="-D -c $CONFIG_FILE" - -# -# Function that starts the daemon/service -# -do_start() -{ - # Return - # 0 if daemon has been started - # 1 if daemon was already running - # 2 if daemon could not be started - start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \ - || return 1 - start-stop-daemon --start --quiet --exec $DAEMON -- \ - $DAEMON_ARGS \ - || return 2 - # Add code here, if necessary, that waits for the process to be ready - # to handle requests from services started subsequently which depend - # on this one. As a last resort, sleep for some time. -} - -# -# Function that stops the daemon/service -# -do_stop() -{ - # Return - # 0 if daemon has been stopped - # 1 if daemon was already stopped - # 2 if daemon could not be stopped - # other if a failure occurred - start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name $NAME - RETVAL="$?" - [ "$RETVAL" = 2 ] && return 2 - # Wait for children to finish too if this is a daemon that forks - # and if the daemon is only ever run from this initscript. - # If the above conditions are not satisfied then add some other code - # that waits for the process to drop all resources that could be - # needed by services started subsequently. A last resort is to - # sleep for some time. - start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON - [ "$?" = 2 ] && return 2 - return "$RETVAL" -} - -# -# Function that sends a SIGHUP to the daemon/service -# -do_reload() { - # - # If the daemon can reload its configuration without - # restarting (for example, when it is sent a SIGHUP), - # then implement that here. - # - start-stop-daemon --stop --signal 1 --quiet $PIDFILE --name $NAME - return 0 -} - -case "$1" in - start) - [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" - do_start - case "$?" in - 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; - esac - ;; - stop) - [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" - do_stop - case "$?" in - 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; - esac - ;; - status) - status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? - ;; - #reload|force-reload) - # - # If do_reload() is not implemented then leave this commented out - # and leave 'force-reload' as an alias for 'restart'. - # - #log_daemon_msg "Reloading $DESC" "$NAME" - #do_reload - #log_end_msg $? - #;; - restart|force-reload) - # - # If the "reload" option is implemented then remove the - # 'force-reload' alias - # - log_daemon_msg "Restarting $DESC" "$NAME" - do_stop - case "$?" in - 0|1) - do_start - case "$?" in - 0) log_end_msg 0 ;; - 1) log_end_msg 1 ;; # Old process is still running - *) log_end_msg 1 ;; # Failed to start - esac - ;; - *) - # Failed to stop - log_end_msg 1 - ;; - esac - ;; - *) - #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 - exit 3 - ;; -esac - -: diff --git a/debian/osmo-gbproxy.install b/debian/osmo-gbproxy.install deleted file mode 100644 index a8c0dadd1..000000000 --- a/debian/osmo-gbproxy.install +++ /dev/null @@ -1,5 +0,0 @@ -etc/osmocom/osmo-gbproxy.cfg -lib/systemd/system/osmo-gbproxy.service -usr/bin/osmo-gbproxy -usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg usr/share/doc/osmo-gbproxy/examples -usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy.cfg usr/share/doc/osmo-gbproxy/examples diff --git a/debian/rules b/debian/rules index cfd692a48..24161a190 100755 --- a/debian/rules +++ b/debian/rules @@ -58,7 +58,6 @@ override_dh_auto_configure: override_dh_strip: dh_strip -posmo-sgsn --dbg-package=osmo-sgsn-dbg dh_strip -posmo-gtphub --dbg-package=osmo-gtphub-dbg - dh_strip -posmo-gbproxy --dbg-package=osmo-gbproxy-dbg # Print test results in case of a failure override_dh_auto_test: |