aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2018-01-30osmo-bsc_nat: Fix use-after-free issue in ctrl forwarding codedaniel/bsc-nat-rebaseDaniel Willmann1-1/+2
Ticket: SYS#3208
2018-01-30Work fix gcc maybe-uninitialized warnings/errorsDaniel Willmann5-8/+14
2018-01-30libmgcp: osmux_config is not a talloc context, don't use it as suchDaniel Willmann1-1/+1
2018-01-30libmgcp: Fix rtp range parsingDaniel Willmann1-5/+5
Change-Id: Ib7e9bda0e1e8ccc21228f635c658e9eca4040fc0
2018-01-30osmo-bsc_nat: Add a description for the MSCDaniel Willmann2-1/+13
Change-Id: I84b713487117108f0978b86bd86d8fe98dc6fb93
2018-01-30libmgcp: Fix Config file writingDaniel Willmann1-42/+51
Change-Id: I1bba2caa40e880f137697b5ded074d3101cd01a6
2018-01-30osmo-bsc_nat: Return -EBADF if ussd_read_cb closes the connectionDaniel Willmann1-1/+1
Ticket: SYS#3208 Change-Id: I07fd9146fbe0658761d1f5d6739a9402e4163edd
2018-01-30osmo-bsc_nat: Change warning into commentDaniel Willmann1-1/+1
Change-Id: If24db994ee737d249f62b61d39f8b7c3cead5550
2018-01-30libmgcp: Add separate option for osmux DSCPDaniel Willmann2-2/+17
Change-Id: I98adb9958df297245ab3284c66048d0c0f6ed163
2018-01-30bsc_nat: Remove warning for MSC-natDaniel Willmann1-3/+0
Change-Id: I17af0f103bf15c08d5ca51a34dc8c23690e03b9c
2018-01-30osmo-bsc_nat: Free mgcp_configs on shutdownDaniel Willmann2-2/+10
Change-Id: I5e9a2704146ea331eceed86064092bb26dbe3735
2018-01-30osmo-bsc_nat: Reenable osmux supportDaniel Willmann6-116/+157
Change-Id: Ib98b65767884d615aac5c537dc58f2cdf5ff4bfa
2018-01-30osmo-bsc_nat: Add missing newline in log statementDaniel Willmann1-1/+1
Change-Id: Id92e9c39e824bb2da71291753f35610267e9a03e
2018-01-30osmo-bsc_nat: Implement MSC-side nat of SCCP connectionDaniel Willmann5-13/+38
Change-Id: I8a7d6095b76bd9072b287a4fa2b29cc0537e1a5b
2018-01-30osmo-bsc_nat: Change nat_sccp_conection ref namesDaniel Willmann4-43/+43
For the multi-msc support we also need to NAT the SCCP refs from the MSC so clarify which real/patched ref belongs to which side of the connection. Change-Id: Idb964542b2172f0f293fa1b7e334d016e9e09461
2018-01-30osmo-bsc_nat: Fix detection of stale connections in MGCPDaniel Willmann1-1/+1
Change-Id: Ieea0314f922c56325749f18f148f1e518bd2d1af
2018-01-30mgcp: Treat ConnID as hexDaniel Willmann2-3/+3
Change-Id: I53ce632d641bbf16919e3b44812e712ef6f54a45
2018-01-30bsc_nat: Fix return value in bsc_read_cb when connection was closedDaniel Willmann1-1/+1
osmo_fd will otherwise call the write_cb if data was enqueued for writing - possibly reading from/writing to free()d data. Change-Id: Ic11c710a7ef61272fee9a952a42052948e3d38fe
2018-01-30bsc_nat: Fix selection of mgcp_config in bsc_mgcp_forward()Daniel Willmann1-5/+6
Change-Id: I1060688459a860c90aa4a4f21aa4583a82480a69
2018-01-30libmgcp: Pass the pointer to the mgcp list on init, don't copy itDaniel Willmann5-11/+12
Change-Id: I2d51589670bb602422ec98521eec620948752e36
2018-01-30libmgcp: Fix mgcp instance argumentDaniel Willmann1-2/+2
Change-Id: I47e5b6fbcf0981699b330030de92f209fc4bb25a
2018-01-30osmo-bsc_nat: Add missing return code for VTYDaniel Willmann1-0/+1
Change-Id: I12b421e970317c604ac8cc2f3c94ff5fdbc3f048
2018-01-30osmo-bsc_nat: Make bsc_mgcp_find_con aware of multiple MGCP configsDaniel Willmann1-4/+5
Change-Id: I508562d48e2a0733ea53fe7adaae828286f791a2
2018-01-30osmo-bsc_nat: Handle multiple mgcp configs in SCCP connDaniel Willmann2-2/+6
Change-Id: Ifb6efa8339b749ab588a5ea37f0b48bc8086ae46
2018-01-30osmo-bsc_nat: Handle multiple mgcp configs in MGCP NAT codeDaniel Willmann1-41/+61
Change-Id: Icbf2951cfc550f75580e95a05804e479c59ec1df
2018-01-30osmo-bsc_nat: Modify nat init to work with multiple mgcp_configsDaniel Willmann3-58/+68
Change-Id: I53ac858952ee15f897160b3a32483c5c91b862f6
2018-01-30libmgcp: Allow to get the mgcp_config by numberDaniel Willmann1-9/+9
Change-Id: I9567b168696bc43c8f74cf0da9a4c647e8bdd822
2018-01-30Add warnings in places missing supportDaniel Willmann4-9/+27
Change-Id: Ic3de69792b2cd8e19cd140402bc1f5fbf9a00021
2018-01-30osmo-bsc_mgcp: Make it work with the changes supporting multiple MGCPDaniel Willmann1-11/+13
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
2018-01-30libmgcp: Make it possible to define more than one MGCP instanceDaniel Willmann2-191/+380
Change-Id: I820839e46f56bdaaf6b05df434829c3eee21e5b9
2018-01-30osmo-bsc_nat: Disable sending MGCP to MSC via IPA multiplexDaniel Willmann1-1/+2
Change-Id: If40b0bd51773b1658f744063be418c024a781e11
2018-01-30libfilter: Also handle detach indicationsDaniel Willmann1-0/+29
Change-Id: Iad4e2861f42d5275e2b3057ab2bc43ef43b61cfe Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Change the way bsc_nat_msc_is_connected() worksDaniel Willmann3-12/+18
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.
2018-01-30osmo-bsc_nat: Have a default MSC for messages from BSCDaniel Willmann3-3/+26
Change-Id: I343e6d9d17bcde6dbdf8f48b7b51e998a296680c Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Implement access lists for MSC connsDaniel Willmann3-1/+56
Change-Id: Iedcf492ff8bb86e7ac68d8909634525e7b0648ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-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.
2018-01-25osmo-bsc_nat: Support multiple MSCs in VTY/configDaniel Willmann3-67/+117
Change-Id: I2e9009b52c6ecc17fc2da8402736412b9093ce19 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Add functions to alloc/find/free MSC configDaniel Willmann1-0/+59
Change-Id: I5879d4d9ee0e1a0a6424ee3e9b214afb07319071 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Add infrastructure for multiple MSC connectionsDaniel Willmann2-0/+13
Add some common defines and structs Change-Id: I9cdfc5b32f2500f47be8caaa281bcca3231db5ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-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.
2018-01-21src/libmsc/ussd.c: drop useless forward declarationVadim Yanitskiy1-13/+10
There is no any significant reason to define static function 'send_own_number' after the code that calls it. Change-Id: I8d804398cfa460eaa5a5f84f0ed90909488d0bdd
2018-01-12libmsc: add support for both comp128v2 and comp128v3Vadim Yanitskiy3-5/+41
This change adds support for both comp128v2 and comp128v3 GSM A3/A8 algorithms. Since they already implemented in libosmocore, the corresponding it's API is used. Change-Id: Ic761be0220397d100c9e6345d4d01af4889dc7c1
2017-12-12sms.db: silence libdbi warnings on out-of-range indexNeels Hofmeyr1-18/+25
Apparently, since libdbi 0.9.0 aka 0.9.0-5 on debian-testing, osmo-msc barfs numerous libdbi warnings whenever a query rightfully returns no rows. Trivially query whether there are any rows first by adding an inline wrap function next_row(). Silenced: DDB <000d> ../../../../src/osmo-msc/src/libmsc/db.c:188 DBI: -6: An invalid or out-of-range index was passed to l DDB <000d> ../../../src/libosmocore/src/backtrace.c:47 backtrace() returned 11 addresses DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xfb81) [0x555555563b81] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/lib/x86_64-linux-gnu/libdbi.so.1(_error_handle DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/lib/x86_64-linux-gnu/libdbi.so.1(dbi_result_ne DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x11172) [0x555555565172] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1e6bc) [0x5555555726bc] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1e7f6) [0x5555555727f6] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1f1d2) [0x5555555731d2] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xbb86) [0x55555555fb86] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0 DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xbfba) [0x55555555ffba] Related: OS#2737 OS#2667 Change-Id: I43cf4eed22425554826d59857eded5b4cc0d2c52
2017-11-27vty: Add cmd to configure 3g Early Classmark SendingPau Espin Pedrol4-3/+31
In state prior to this patch, "3G Early Classmark Sending Restriction" bit in SI3 rest octets was always set to H, which is a sane default as the policy to send the information is then controlled by "Early Classmark Sending Control" bit in the same octet. However, it seems Quortus SoftCore can have some issues decoding the option, so let's add a vty cmd to be able to disable it for those having any issues. Related: SYS#4021 Change-Id: Ic1afe071038a3bb5871d7ff40f665c8644f801ec
2017-11-27Use type bool for boolean fields in gsm48_si_ro_infoPau Espin Pedrol1-7/+7
Change-Id: Ic0981fca96f4927717ca335be1dab00a5d17fd6c
2017-11-11osmo-bsc-sccplite: Implement incoming RESET procedureHarald Welte2-1/+34
In osmo-bsc-sccplite we so far didn't implement the inbound RESET procedure. We instead ignored any RESET message from the MSC. This commit adds support for RESET: We will destrpy any SCCP connections and acknowledge the RESET to the MSC. As osmo-msc is requiring the BSC to handle an inbound RESET procedure, this commit allows osmo-msc to properly initialize the A interface towards osmo-bsc-sccplite via a translating/routing osmo-stp. While we don't anticipate any new deployments of osmo-bsc-sccplite, making it interoperate with osmo-msc enables us to do more testing of osmo-bsc-sccplite. Change-Id: Iceb8278deb36d6103662a704f489ba0d685e04d3
2017-11-11osmo-bsc: Print NOTICE message on unimplemented BSSMAP UDTHarald Welte1-0/+4
When we receive unimplemented/unhandled message types, we shouldn't simply silently discard them, but print a log message for the benefit of the user. Change-Id: I8ecb1d2134f9c6a96f29e145fa0430880e971168
2017-11-01vty: skip installing cmds now always installed by defaultNeels Hofmeyr9-18/+0
vty_install_default() and install_default() will soon be deprecated. Depends: I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b Change-Id: I4951982fc78ae167d8e16a672d7af44d703721a9
2017-10-26rename osmo-bsc to osmo-bsc-sccpliteHarald Welte2-4/+4
This is to avoid naming conflicts with the new osmo-bsc, which resides in its own git repository (osmo-bsc.git) and which uses libosmo-sigtran and implements (primarily) 3GPP AoIP. Change-Id: If10d1599b62d010726336134091a4e855c380d93
2017-10-26remove sgsn, gbproxy and gtphub from openbsc.gitHarald Welte40-25043/+0
The GPRS related programs osmo-sgsn, osmo-gtphub and osmo-gbproxy have been split off into the separate osmo-sgsn repository, which can be found at git://git.osmocom.org/osmo-sgsn.git http://git.osmocom.org/osmo-sgsn/ This is technically unrelated but conceptually part of the larger NITB-split activities. I did a brief log of all changes in src/gprs and couldn't find any commits that we might have applied here but which are missing from osmo-sgsn.git. Change-Id: If60e28b23f5cfb2c4eb354951363a2bb63f3e0de