aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-15libmgcp: Pass the pointer to the mgcp list on init, don't copy itusers/daniel/ow-nat-msc-connsDaniel Willmann7-13/+13
Change-Id: I2d51589670bb602422ec98521eec620948752e36
2017-09-15libmgcp: Fix mgcp instance argumentDaniel Willmann1-2/+2
Change-Id: I47e5b6fbcf0981699b330030de92f209fc4bb25a
2017-09-08osmo-bsc_nat: Add missing return code for VTYDaniel Willmann1-0/+1
Change-Id: I12b421e970317c604ac8cc2f3c94ff5fdbc3f048
2017-09-08osmo-bsc_nat: Attempt to make bsc_mgcp_find_con aware of multiple MGCPDaniel Willmann1-4/+5
Change-Id: I508562d48e2a0733ea53fe7adaae828286f791a2
2017-09-08WIP: Add missing linesDaniel Willmann1-3/+3
Change-Id: I353502ed27fc1eb828169a4aaccaf04593eacdd8
2017-09-08osmo-bsc_nat: Handle multiple mgcp configs in SCCP connDaniel Willmann4-3/+9
Change-Id: Ifb6efa8339b749ab588a5ea37f0b48bc8086ae46
2017-09-08osmo-bsc_nat: Handle multiple mgcp configs in MGCP NAT codeDaniel Willmann1-38/+58
Change-Id: Icbf2951cfc550f75580e95a05804e479c59ec1df
2017-09-08osmo-bsc_nat: Modify nat init to work with multiple mgcp_configsDaniel Willmann4-62/+75
Change-Id: I53ac858952ee15f897160b3a32483c5c91b862f6
2017-09-08libmgcp: Allow to get the mgcp_config by numberDaniel Willmann2-9/+10
Change-Id: I9567b168696bc43c8f74cf0da9a4c647e8bdd822
2017-09-08Add warnings in places missing supportDaniel Willmann5-11/+33
Change-Id: Ic3de69792b2cd8e19cd140402bc1f5fbf9a00021
2017-09-07osmo-bsc_mgcp: Make it work with the changes supporting multiple MGCPDaniel Willmann1-11/+14
osmo-bsc_mgcp will still only use the first mgcp instance, but this copes with the API changes in mgcp_parse_config. Change-Id: I52ea74103acef374212e276dfa8122b00ca4562a
2017-09-07libmgcp: Make it possible to define more than one MGCP instanceDaniel Willmann3-192/+383
Change-Id: I820839e46f56bdaaf6b05df434829c3eee21e5b9
2017-08-24WIPDaniel Willmann1-1/+2
Change-Id: If40b0bd51773b1658f744063be418c024a781e11
2017-08-24libfilter: Also handle detach indicationsDaniel Willmann1-0/+29
Change-Id: Iad4e2861f42d5275e2b3057ab2bc43ef43b61cfe Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Remove unused MSC elements in struct bsc_natDaniel Willmann1-6/+0
Change-Id: Ied1bdead94ba2737293fb1ac2411771a8b8ffd68 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Change the way bsc_nat_msc_is_connected() worksDaniel Willmann4-13/+19
The function now takes a struct msc_config and returns true if that MSC is connected. The vty command show msc connection now shows a line per connected MSC. In bsc_nat.c where osmo-bsc_nat previously hung up on a BSC connection if the (one) MSC was not connected it now checks for the default MSC connection. Change-Id: I95fbe1b8ad6621aba9b4bd6b581abfde0cb31fd0 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Have a default MSC for messages from BSCDaniel Willmann4-3/+28
Change-Id: I343e6d9d17bcde6dbdf8f48b7b51e998a296680c Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15tests: Test IMSI routing with multiple MSCsDaniel Willmann2-0/+50
Change-Id: Iab46d45aa8ba708282debcd7b9d704fc40e6ff1f Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Implement access lists for MSC connsDaniel Willmann4-1/+60
Change-Id: Iedcf492ff8bb86e7ac68d8909634525e7b0648ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Change some functions to work with multiple MSC connsDaniel Willmann2-2/+11
Change-Id: Iab6f23f6f010f34876e37852cafa53e3a641478e Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Support multiple MSCs in VTY/configDaniel Willmann4-68/+119
Change-Id: I2e9009b52c6ecc17fc2da8402736412b9093ce19 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Add functions to alloc/find/free MSC configDaniel Willmann2-0/+64
Change-Id: I5879d4d9ee0e1a0a6424ee3e9b214afb07319071 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Add variables for multiple MSC conns to struct bsc_natDaniel Willmann1-0/+4
Change-Id: I0b959431140b1e48ca3dd85a8d8985cf967073e2 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Add infrastructure for multiple MSC connectionsDaniel Willmann4-0/+25
Add some common defines and structs Change-Id: I9cdfc5b32f2500f47be8caaa281bcca3231db5ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2017-03-15osmo-bsc_nat: Remove MSC IP cmdline option. This no longer makes sense for ↵Daniel Willmann1-8/+0
multiple MSCs Change-Id: I6f348dd5c7bdb2530081a1d609d03a6b0d13d0b2 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2016-11-14debian: Release new version with a fix for gbproxyDaniel Willmann1-0/+6
Change-Id: I966c27f683763c976a93effda1aa4326b80b4856
2016-11-14test/gbproxy: Test for possible memory corruption when link_info is freedDaniel Willmann2-0/+276
This test is to trigger the use-after free issue in commit bff7b0d80972. If compiled with address-sanitizer the test will abort without the fix. Change-Id: I5e8c6626ba43342740f08d699383bdded739079f Ticket: OW#3049 Sponsored-by: On-Waves ehf
2016-11-14gbproxy: Check whether gbproxy_update_link_state_after() deletes the link_infoDaniel Willmann3-13/+27
In case the link_info is deleted we have to stop handling the stored messages inside link_info. Not doing so can lead to invalid memory being accessed. Change-Id: Ieb8503e9e94e7a5ac450ad8aa1713ec4f21cdea5 Ticket: OW#3049 Sponsored-by: On-Waves ehf
2016-11-02Release new version with fix for msisdn in pdp context activationDaniel Willmann1-0/+6
Change-Id: Ia17ea5daaeb89d100bb673165dd7d2acabaf9b0f
2016-11-02SGSN: Use dummy all-zero MSISDN value in PDP Context Act on GTPHarald Welte1-1/+14
The GTP protocol specification requires us to include the MSISDN IE in all non-secondary PDP context activations. However, when no real HLR is used (e.g. via GSUP), we do not have the MSISDN information available and so far simply sent a zero-length MSISDN IE in GTP. The latter is a violation of the spec. So to resolve this, we now send a 15-digit all-zero dummy MSISDN IE, as described in TS 23.003. Change-Id: I8d0a5d52d6cd2a00b5dda060bd41d45056dfa84d
2016-06-29debian: New release for mgcp osmux feature negotiationusers/daniel/osmux-issuesDaniel Willmann1-2/+9
Change-Id: I3dc2b60c5acf5b35eb082f88abe464864f0f7e19
2016-06-29osmux: Add negotiation state so race conditions can't disable osmuxDaniel Willmann3-5/+7
Change-Id: Id624b0279aee5e2412059a10296ce7896e2d4628
2016-05-26debian: Make a new release for better memory mgmtzecke/stable/0.15Holger Hans Peter Freyther1-0/+6
Puts the copied IMSI into the right context to be released at the SCCP connection level. Change-Id: Ibbe8fc969393e503780933a962ad35dc215cb5e7
2016-05-26filter/nat: Fix the context for the imsi assignmentHolger Hans Peter Freyther2-1/+4
In c09f8a3b7fb94ccef41e33c32bfe2bff1ffe0e44 as part of a cleanup I accidently changed the talloc context from "con" to "bsc". The issue occurred at an earlier commit when assigning req.ctx to the "wrong" context. The allocation needs to be scoped by the struct nat_sccp_connection and not the connection from BSC to NAT. Before we have a nat_sccp_connection we scope the copied imsi to the bsc_connection and then steal it, but for the identity resp we will always have a nat_sccp_connection and can already use the right context. [Backported from master] Change-Id: I53789aad2809e19338ad3b2deb72c4757e7bd524 Related: OS#1733 Reviewed-on: https://gerrit.osmocom.org/102 Tested-by: Jenkins Builder Reviewed-by: Harald Welte <laforge@gnumonks.org> Reviewed-by: daniel <dwillmann@sysmocom.de> Reviewed-by: Holger Freyther <holger@freyther.de>
2015-12-17debian: New release with cherry-pick of gbproxy fixzecke/release/openbsc-0.15.0+z6shared/packages/testingHolger Hans Peter Freyther1-0/+6
2015-12-17gbproxy: Fix stored msgbs in gbproxy_flush_stored_messagesJacob Erlbeck1-1/+1
Currently the last message received is patched with the meta information of each stored message. This can lead to invalid memory accesses. This commit replaces msg by stored_msg in the call to gbproxy_patch_bssgp. Note that the fix has not been validated by unit tests yet. Addresses: Program received signal SIGSEGV, Segmentation fault. #0 memmove () at ../sysdeps/i386/i686/memmove.S:68 #1 0x08052ee9 in gprs_msgb_resize_area at gprs_utils.c:99 #2 0x0804f4de in gbproxy_patch_apn_ie at gb_proxy_patch.c:108 #3 0x0804f7cd in gbproxy_patch_llc at gb_proxy_patch.c:253 #4 0x0804f9cb in gbproxy_patch_bssgp at gb_proxy_patch.c:348 #5 0x0804abf5 in gbproxy_flush_stored_messages at gb_proxy.c:347 Ticket: OW#1550 Sponsored-by: On-Waves ehf
2015-11-30debian: Make new release 5e95a411946ba3c520f048c07f8fdc3dff26d564Holger Hans Peter Freyther1-0/+7
2015-11-30New OpenBSC release based on 98fa3dc1c655033b31d90ed051cfa9144e30248cHolger Hans Peter Freyther1-0/+7
2015-11-30New OpenBSC releaseHolger Hans Peter Freyther1-0/+9
2015-11-30Make a new release from a777c9ee3d4e433c713f7a5c346519aa0321f096Holger Hans Peter Freyther1-0/+7
2015-11-30New release based on fa07b489dc3e14579b34365c0a0f1b5d5a70138fHolger Hans Peter Freyther1-2/+10
2015-11-30debian: Make a new release againHolger Hans Peter Freyther1-2/+9
2015-11-30debian: New releaseHolger Hans Peter Freyther1-0/+6
2015-11-30debian: Build new packageHolger Hans Peter Freyther1-1/+7
2015-11-30debian: Add the new c-ares dependency for the SGSNHolger Hans Peter Freyther1-1/+2
2015-11-30debian: New release with new NAT commandHolger Hans Peter Freyther1-3/+13
2015-11-30debian: Build new packagesHolger Hans Peter Freyther1-1/+2
2015-11-30sgsn: Do not die in _bssgp_tx_dl_ud on TLLI mismatch (TODO)Jacob Erlbeck1-9/+20
Currently an OSMO_ASSERT fails, if the message's and the mmctx's TLLIs do not match. This commit turns the assertion into an ERROR log message and uses the default values for IMSI, DRX, and RA CAP instead of the MM context values in this case. TODO: - find the real source for the problem - add test cases derived from what is being described in the ticket Ticket: OW#1322 Sponsored-by: On-Waves ehf
2015-11-30sgsn: Added TODOs (TODO)Jacob Erlbeck1-0/+6
TODO: - fix and remove TODOs - add test cases for Detach(reattach) - add test cases for PDP context deletion (OW#1311) - add test cases for Cancel pending timer in sgsn_mm_ctx_free - remove this commit Sponsored-by: On-Waves ehf
2015-11-30sgsn: Add logging to connect_timer_cb (TODO)Jacob Erlbeck1-0/+3
TODO: - LOGLevel ? Sponsored-by: On-Waves ehf