path: root/include
diff options
authorStefan Sperling <ssperling@sysmocom.de>2018-05-07 14:13:41 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-15 20:58:06 +0000
commit5a0f85d00b749a75f3d101e7f860bffea6270084 (patch)
treeda278f2df3b7ccbc1b778b6fd948730e14b0b752 /include
parent33da462a2bf37f2688d79530b11f9e65b5c93502 (diff)
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
Diffstat (limited to 'include')
1 files changed, 5 insertions, 0 deletions
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;