osmo-hnbgw/src/osmo-hnbgw
Neels Hofmeyr c29d71b058 use json to decode counters from nftables
Switch nft output to json. Add libjansson dependency, and use it to
parse the result. Navigate the json tree to retrieve the counter values.

Parsing with json takes longer than the direct string parsing of nft
language, but it is the more correct and more stable approach: in case
nftables changes its API, json is likely to still be compatible.

Related: SYS#6773
Change-Id: Id4e7fa017c31945388a010d8581715d71482116b
2024-04-30 02:47:16 +02:00
..
Makefile.am per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00
cnlink.c stats: Introduce basic counters for RANAP unit-data from CN links 2024-03-12 20:47:50 +00:00
context_map.c detect in/active CN links by RANAP RESET 2023-06-21 04:16:13 +02:00
context_map_rua.c context_map_{rua,sccp}: Re-order to always process KPIs 2024-03-27 18:22:10 +01:00
context_map_sccp.c context_map_{rua,sccp}: Re-order to always process KPIs 2024-03-27 18:22:10 +01:00
hnbgw.c nft_kpi: add rate_ctr gtpu:ue_bytes:ul,dl 2024-04-30 02:46:20 +02:00
hnbgw_cn.c cosmetic: align downlink RANAP unitdata function names with uplink 2024-03-13 12:11:01 +01:00
hnbgw_hnbap.c per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00
hnbgw_l3.c rename hnbgw_peek_l3 to hnbgw_peek_l3_ul as it's uplink only 2024-03-12 23:28:50 +00:00
hnbgw_pfcp.c simplify: one g_hnbgw as global state and root ctx 2023-05-07 00:18:34 +02:00
hnbgw_ranap.c cosmetic: Rename hnbgw_rx_ranap and friends to *_rx_ranap_udt_ul 2024-03-12 23:28:50 +00:00
hnbgw_rua.c rename hnbgw_peek_l3 to hnbgw_peek_l3_ul as it's uplink only 2024-03-12 23:28:50 +00:00
hnbgw_vty.c per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00
kpi_ranap.c counters: Distinguish between normal and abnormal release cause 2024-04-09 08:12:03 +00:00
mgw_fsm.c mgw_fsm: Add some OSMO_ASSERT() to ensure only CS maps passed 2024-03-13 12:11:01 +01:00
nft_kpi.c use json to decode counters from nftables 2024-04-30 02:47:16 +02:00
osmo_hnbgw_main.c per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00
ps_rab_ass_fsm.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
ps_rab_fsm.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
ranap_rab_ass.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
tdefs.c per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00