From 5a0f85d00b749a75f3d101e7f860bffea6270084 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Mon, 7 May 2018 14:13:41 +0200 Subject: let osmo-bts log a special notice if OML connection is closed early A frequent configuration file error is that the unit_id settings of osmo-bts and osmo-bsc don't match. The BSC already prints an error in this case. Let the BTS print an error as well. We use a heuristic for this purpose: If the OML link is dropped within 10 seconds after being established, log a special warning which alerts the user and recommend a manual configuration file check. Change-Id: I476ac797458b5a46edea3ae9cfbd491fd7f77f47 Related: OS#3143 --- include/osmo-bts/gsm_data_shared.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index 812d086a..81cac3e3 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -514,6 +514,10 @@ struct gprs_rlc_cfg { uint8_t initial_mcs; }; +/* The amount of time within which a sudden disconnect of a newly established + * OML connection will cause a special warning to be logged. */ +#define OSMO_BTS_OML_CONN_EARLY_DISCONNECT 10 /* in seconds */ + /* One BTS */ struct gsm_bts { /* list header in net->bts_list */ @@ -552,6 +556,7 @@ struct gsm_bts { /* how do we talk OML with this TRX? */ uint8_t oml_tei; struct e1inp_sign_link *oml_link; + struct timespec oml_conn_established_timestamp; /* Abis network management O&M handle */ struct abis_nm_h *nmh; -- cgit v1.2.3