diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-12 14:28:52 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-13 18:08:28 +0100 |
commit | 73acbca50fe109bcd58f90c1a282b0c75a81b97b (patch) | |
tree | 7e5186a7d992dcae24a429e1c42d3252ac8bb1d5 /include/osmocom | |
parent | aa4adb8fbf9bd66ec6d628250ffe1a4106a9724d (diff) |
Make RSL connection attempts time out.
If a BTS/TRX does not respond to the "IPA RSL Connect" command,
pretend that the BTS has sent a NACK for the connection.
To ensure that osmo_timer_del(&trx->rsl_connection_timeout) is not called
before this timer is initialized with osmo_timer_setup(), the E1 layer now
drops incoming RSL messages from a BTS/TRX in LOCKED administrative state.
We cancel the timeout if we receive an RSL Connect ACK or NACK from the BTS,
and if the underlying E1 link does down.
While here, add a missing message buffer free() in bts_isdn_sign_link().
The callers do not free it.
Change-Id: Ia72b65a0f15f47dcb8a6f944f6c3695a4a64b923
Related: OS#2716
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/gsm_data_shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data_shared.h b/include/osmocom/bsc/gsm_data_shared.h index e3e138957..b753e5468 100644 --- a/include/osmocom/bsc/gsm_data_shared.h +++ b/include/osmocom/bsc/gsm_data_shared.h @@ -351,6 +351,9 @@ struct gsm_bts_trx { uint8_t rsl_tei; struct e1inp_sign_link *rsl_link; + /* Timeout for initiating the RSL connection. */ + struct osmo_timer_list rsl_connect_timeout; + /* Some BTS (specifically Ericsson RBS) have a per-TRX OML Link */ struct e1inp_sign_link *oml_link; |