aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-03-23Answer rx_epdg_tunnel_requestlynxis/epdg-simAlexander Couzens1-0/+13
2023-03-14tests/*/Makefile.am: move -I to AM_CPPFLAGSVadim Yanitskiy4-4/+7
Change-Id: I654053e11b0cc824c198f68e4ff0a0fcb295efb0
2023-03-14tests/auc/Makefile.am: put object files to LDADDVadim Yanitskiy1-4/+4
Change-Id: Iaefcfe7a8904841a29094fe40eb5850912544b4c
2023-03-14mslookup: Call osmo_fd_unregister() before closing and changing bfd->fdPau Espin Pedrol1-2/+2
Change-Id: I26bba0dd092ad5fd6b4959b173fae93b542a93f1
2023-02-22tests/db/db_test.err: adjust to XOR-3G renameOliver Smith3-4/+4
Adjust the test to the related libosmocore change. Related: libosmocore I446e54d0ddf4a18c46ee022b1249af73552e3ce1 Change-Id: I68878d24340659f888e5e348b937161cffbd54e2
2023-02-20Run struct_endianness.pyOliver Smith1-1/+1
Ensure there is no diff to prepare to run this in CI. Related: OS#5884 Change-Id: I4294a18871214b70cef267fcaaaaada42cb61bf9
2023-02-07Bump version: 1.5.0.19-268a-dirty → 1.6.01.6.0Pau Espin Pedrol6-25/+64
Change-Id: Ide480a902bbfadefa396f3a0cb925f5dceab4f9c
2023-01-20Add vty `reject-cause` to set the reject causeAlexander Couzens7-6/+98
Allow to set the LU reject cause independently for both of the following cases; either when an IMSI is unknown to the HLR or when the mslookup client does not a receive a timely response to a GSUP request for the remote home HLR. Original patchset modified by <keith@rhizomatica.org> Change-Id: Icea39020c23fbbea9e92847df76af8986fdbf48a
2023-01-15fix memleak of proxy_subscr_listentryNeels Hofmeyr1-0/+1
Patch-by: whytek Related: OS#5854 Change-Id: Ic1ec4911fa5ae91cc75aa865c8201edd83af41ed
2022-12-27Vty: Fixup config shown/written from vtyKeith4-24/+29
This commit fixes the following errors: Missing timeout param for mslookup. Fails to start reading a written config if an msc node is configured in the mslookup server. Places the individual msc node services in the top-level wildcard node due to incorrect indentation. * Add missing timeout param. * Add missing "ipa-name" part to mslookup-server-msc section. * Add one extra space indentation for msc services. This commit also adds a DEFINE for the default timeout value. Change-Id: Ibb60e74a0803f05f37ac13ca529d77b4cb736025
2022-12-23osmo_mdns_rfc_record/question_encode: remove ctxOliver Smith4-8/+8
Remove the ctx argument to both functions, as it's not used anymore. Related: OS#5821 Change-Id: I5e3dd18bf08f7aa42f49c262e13250778ea0c6a2
2022-12-23mslookup: use apn functions from libosmocoreOliver Smith4-339/+34
Use the apn functions from libosmocore to encode and decode qnames to avoid code duplication and to avoid unnecessary dynamic allocation. The unit tests for encoding and decoding rfc_question / rfc_record are still passing and have the same output. Fixes: OS#5821 Change-Id: I09d3c617fd6eb4075084ee106d3f3c5803861d2f
2022-12-23osmo_mdns_rfc_record_decode: proper free on errOliver Smith1-1/+1
Free the whole talloc tree of ret if we can't allocate memory for ret->rdata. Related: OS#5821 Change-Id: Iefc89e3c75a4bf4ffee3871c7b551a2a608f7d5f
2022-12-23osmo_mdns_rfc_record_decode: check ret of tallocOliver Smith1-1/+5
Related: OS#5821 Change-Id: Icd0f54a8eb80ca50976f248e017f6e5c727385f3
2022-12-23osmo-hlr: Transition to use of 'telnet_init_default'arehbein1-2/+1
Related: OS#5809 Change-Id: I5cee719a9c4437712915f0f9760d606f6ec2dd43
2022-12-17ctrl: take both address and port from vty configMax3-7/+2
Change-Id: Iecae15333a4e77b38d9bce8c8e591af3d5fcf347
2022-11-03Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definitionHarald Welte1-0/+1
... if --enable-werror is used Change-Id: Id465254bf12eb84acb116c86711a5b52b4d3ad35
2022-11-03Support building with -Werror=strict-prototypes / -Werror=old-style-definitionHarald Welte15-33/+33
Unfortunately "-std=c99" is not sufficient to make gcc ignore code that uses constructs of earlier C standards, which were abandoned in C99. See https://lwn.net/ml/fedora-devel/Y1kvF35WozzGBpc8@redhat.com/ for some related discussion. Change-Id: I861be39275b40c522c02f553074c5a4489e87127
2022-09-24hlr_vty.c: fix typoMax1-1/+1
Change-Id: If79ebd9a8998e64be55e52af43e426f37e3972af
2022-09-18Debian: install osmo-hlr-dgsm.cfg as example configMax1-0/+1
Related: OS#4107 Change-Id: Ia64f14ada006acb31c5f725dfa0d52f482d3e8b4
2022-09-18systemd: enable basic hardeningMax1-0/+1
This ensures that systemd will not allow us to modify /home, /root and /run/user which we shouldn't be doing anyway. See https://www.freedesktop.org/software/systemd/man/systemd.exec.html for details. It should also should silence corresponding lintian warning. Related: OS#4107 Change-Id: Ida5f13bdb9e5bd956c440a381d94eecc18f0b2ef
2022-09-18Debian: reformat package descriptionMax1-2/+3
Shorten the lines of package description to comply with Debian Policy Manual section 3.4.1 Related: OS#4107 Change-Id: Id6bbfc0b013f0e8da80af76206d3ac7fd6b6b0d4
2022-09-18Debian: bump copyright year to match currentMax1-1/+1
Related: OS#4107 Change-Id: I581e62b5410a9dddc6b5fd974081d633cc20416d
2022-09-09Ignore .deb build byproductsMax1-0/+16
Change-Id: Id36f55cd55be25f764c2b9515eff84d106bab1dc
2022-08-29Set working directory in systemd service fileMax2-1/+2
By default systemd will execute service with root directory (or home directory for user instance) which might result in attempts to create files in unexpected place. Let's set it to 'osmocom' subdir of state directory (/var/lib for system instance) instead. Related: OS#4821 Change-Id: I40b5d50470cb55ca94af5e17f21658181a02d4c2
2022-06-29db_auc: hexparse_stmt(): check value returned by osmo_hexparse()Vadim Yanitskiy1-1/+4
Change-Id: I78bb3aff9dd57a38278bb34113ea764e0a54c439 Fixes: CID#272997
2022-06-28Bump version: 1.4.0.16-3863-dirty → 1.5.01.5.0Pau Espin Pedrol4-14/+42
Change-Id: I016ddf4fd955c3b518e620a35f9a817f489e81c4
2022-06-21doc: Document new subscriber CTRL commandsPau Espin Pedrol5-1/+120
Related: SYS#5993 Change-Id: I3e38d067bbc2ebb7f788dc56a5d56e1e4cafdc9c
2022-06-21ctrl: Introduce CTRL command subscriber.by-*.aud3g ↵Pau Espin Pedrol5-8/+200
<algo[,KI,(op|opc),OP_C[,ind_bitlen]]> This command provides getter and setter to set and retrieve the authentication data for 3g subscribers. Change-Id: Ibe7aeec3cabab0406eb7a84ecd24e529ef1696c2 Related: SYS#5993
2022-06-21ctrl: Introduce CTRL command subscriber.by-*.aud2g <algo[,ki]>Pau Espin Pedrol4-4/+132
This command provides getter and setter to set and retrieve the authentication data for 2g subscribers. Change-Id: Ibebac232fa173bce8a075cacf477214d5bdb590f Related: SYS#5993
2022-06-20ctrl: Introduce cmd SET subscriber.delete <imsi>Pau Espin Pedrol3-0/+44
On success SET_REPLY contains the ID of the deleted subscriber. Related: SYS#5993 Change-Id: I24c6149d7c223a12549d712a7929666220c0210f
2022-06-20cosmetic: hlr_vty_subscr.c: Fix trailing whitespacePau Espin Pedrol1-2/+2
Change-Id: Id751d227a52f39e3a8874d8b78c633b8d3eb9e74
2022-06-20ctrl: Introduce CTRL command subscriber.by-*.msisdnPau Espin Pedrol3-0/+101
This command provides getter and setter to set and retrieve the MSISDN of a subscriber. Related: SYS#5993 Change-Id: I5f2e807859f7e28e0984c8dc37edc69319fd8e10
2022-06-20ctrl: Introduce cmd SET subscriber.create <imsi>Pau Espin Pedrol5-0/+66
Create a new subscriber from CTRL, similar to VTY command "imsi IDENT create". On success SET_REPLY contains the ID of the newly created subscriber. Related: SYS#5993 Change-Id: Id1b760cd07712245a0eeabaac7891bce93c1fe8e
2022-06-18update git URLs (git -> https; gitea)Harald Welte3-6/+5
Change-Id: Iaab27a8e258a29a0bb51ee8d9f5faeb2c025f139
2022-06-17Fix db_subscr_create() not returning -EEXIST expected by VTY subscriber ↵Pau Espin Pedrol3-11/+14
create cmd As a result, the -EEXIST code path printing a specific error for inserting already existing subscribers was not being triggered. Change-Id: Id24dc6e0ff5115c8c9025404dd7296250d2b03ee
2022-06-17tests/ctrl: Move ERROR test scenario to proper filePau Espin Pedrol2-2/+3
Change-Id: I26ba561c22c40877d99f2aed27be2df9faaa4bec
2022-06-17tests: Allow specyfing specific ctrl test to runPau Espin Pedrol1-1/+4
Similar to what's already available for vty tests. Change-Id: I3b01edfb22197f4d46bd24e15bdcd37ea0382e4a
2022-06-17ctrl: Mark function as staticPau Espin Pedrol2-14/+13
Also move it more towards the end, where it is more expected as usually done in ctrl/vty code. Change-Id: Ieb956fb855752cfbe83d11aa0326685229a115e3
2022-04-14tests: use 'check_PROGRAMS' instead of 'noinst_PROGRAMS'Vadim Yanitskiy2-4/+2
When using 'check_PROGRAMS', autoconf/automake generates smarter Makefiles, so that the test programs are not being compiled during the normal 'make all', but only during 'make check'. Change-Id: I70cf75b3cb6ae59c92248cc529546750fb0da07b
2022-02-08debian: add new 'osmo-mslookup-utils' packageVadim Yanitskiy2-0/+11
Change-Id: I9dbe00187678a5032fb4ae32b496892fdc86ddb7 Related: OS#4706
2022-02-05fixup: debian: remove unneeded dependency libdbd-sqlite3Vadim Yanitskiy1-1/+1
Change-Id: I3ece7c32151f6f334d0595fdbf9099c930b22bb9 Fixes: I5bfe9c71740c1ced5bad0a41dfca568b9e00070c
2021-12-14treewide: remove FSF addressOliver Smith1-4/+0
Remove the paragraph about writing to the Free Software Foundation's mailing address. The FSF has changed addresses in the past, and may do so again. In 2021 this is not useful, let's rather have a bit less boilerplate at the start of source files. Change-Id: I4b20c685b6370bf5dc472a42664e2665eb0d8f8c
2021-11-16Bump version: 1.3.0.7-bfee → 1.4.01.4.0Pau Espin Pedrol1-0/+21
Change-Id: I39bbc42009bf6291884f652618bfdf94b329a295
2021-09-01debian/control: remove dh-systemd build-dependOliver Smith1-1/+0
Related: OS#5223 Change-Id: Ieb8669a9a43ea1acc6b2d8d2e363f2466c51697a
2021-07-19db v6: determine 3G AUC IND from VLR nameNeels Hofmeyr18-341/+296
Each VLR requesting auth tuples should use a distinct IND pool for 3G auth. So far we tied the IND to the GSUP peer connection; MSC and SGSN were always distinct GSUP peers, they ended up using distinct INDs. However, we have implemented a GSUP proxy, so that, in a distributed setup, a remotely roaming subscriber has only one direct GSUP peer proxying for both remote MSC and SGSN. That means as soon as a subscriber roams to a different site, we would use the GSUP proxy name to determine the IND instead of the separate MSC and SGSN. The site's MSC and SGSN appear as the same client, get the same IND bucket, waste SQNs rapidly and cause auth tuple generation load. So instead of using the local client as IND, persistently keep a list of VLR names and assign a different IND to each. Use the gsup_req->source_name as indicator, which reflects the actual remote VLR's name (remote MSC or SGSN). Persist the site <-> IND assignments in the database. Add an IND test to db_test.c There was an earlier patch version that separated the IND pools by cn_domain, but it turned out to add complex semantics, while only solving one aspect of the "adjacent VLR" problem. We need a solution not only for CS vs PS, but also for 2,3G vs 4G, and for sites that are physically adjacent to each other. This patch version does not offer any automatic solution for that -- as soon as more than 2^IND_bitlen (usually 32) VLRs show up, it is the responsibility of the admin to ensure the 'ind' table in the hlr.db does not have unfortunate IND assignments. So far no VTY commands exist for that, they may be added in the future. Related: OS#4319 Change-Id: I6f0a6bbef3a27507605c3b4a0e1a89bdfd468374
2021-07-15db: Avoid use uninitialized rc if running 0 statementsPau Espin Pedrol1-1/+1
Caught by new gcc 11.1.0: /git/osmo-hlr/src/db.c:257:16: error: ‘rc’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 257 | return rc; | ^~ Change-Id: I45e1fede234cd4446a7061fb908bf344eee72f5a
2021-06-01Add post-upgrade script for automatic db upgradeOliver Smith5-0/+116
Closes: OS#5138 Change-Id: I34e943e5020285f63a2162010eb42675af1520bf
2021-05-13vty: enable show subscribers filtered by IMEIKeith5-3/+8
In 89fda3024a0c9a422cc5e5033b016ce0ab6c1ff3 I added a vty command to show a summary of filtered subscribers by imsi or msisdn. In practice there is a also need to be able to filter on IMEI. The idea here is not to replace every operation that could be done directly on the sql database in the vty, but this one is useful. Change-Id: Ic4a11d3ebcf8909c68e9f4617e94dc822491e008
2021-03-21add README.md file as customary for cgit, github, gitlab, etc.Harald Welte1-0/+66
Change-Id: Ide03584aae21d5972e96e7862feb86e1265c29b3