osmo-hnbgw/tests
Neels Hofmeyr a503bd4eb2 3-digit MNC: use osmo_plmn_id in struct umts_cell_id
Properly represent the mnc_3_digits flag in umts_cell_id, and preserve
the three digit indicator as received on the wire.

Before this patch, the indicator for a three digit MNC received on the
wire was discarded, and instead g_hnbgw->config.plmn.mnc_3_digits was
used to convert any PLMN to string, whether it had 3 digits or not.

== hnb_persistent_list:

The cell id is used as primary key in the list of hnb_persistent
instances. This patch prevents any collisions between 2-digit and
3-digit MNCs (however unlikely in practice this may be).

== nft_kpi.c:

Just like the cell ids in hnb_persistent, the ids' strings are used as
primary key in nftables rulesets in nft_kpi.c -- also prevent MNC
collisions there:

Properly transport the 3-digit property in conversions:
  struct umts_cell_id <-> string
Uncouple to_str conversion from the PLMN set in the hnbgw VTY cfg.

Related: OS#6457
Change-Id: Id9a91c80cd2745424a916aef4736993bb7cd8ba0
2024-06-06 07:19:05 +02:00
..
config Display RANAP state during 'show cnlink' 2024-01-15 13:56:38 +01:00
ranap_rab_ass tests/ranap_rab_ass: Test RAB-Ass.req with X.213 IPv4 address len=7 2023-11-27 14:51:13 +00:00
umts_cell_id 3-digit MNC: use osmo_plmn_id in struct umts_cell_id 2024-06-06 07:19:05 +02:00
Makefile.am add umts_cell_id_test.c 2024-06-06 07:19:05 +02:00
atlocal.in Initial structure + import code from osmo-iuh.git 2022-01-04 19:48:52 +01:00
cnpool.vty detect in/active CN links by RANAP RESET 2023-06-21 04:16:13 +02:00
nri_cfg.vty cnpool: make NRI mappings VTY configurable 2023-06-02 17:11:25 +02:00
osmo-hnbgw-vty-test.cfg add separate cfg file only for VTY tests 2023-05-26 23:23:21 +02:00
osmo-hnbgw.vty per-HNB GTP-U traffic counters via nft 2024-05-23 17:07:08 +02:00
pfcp_cfg.vty.with_pfcp pfcp: implement sending Network Instance IEs 2024-01-21 02:48:38 +01:00
test_nodes.ctrl ctrl test: also test msc 1 2023-06-16 04:25:31 +02:00
testsuite.at add umts_cell_id_test.c 2024-06-06 07:19:05 +02:00