diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-06 19:25:06 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-23 20:18:18 +0100 |
commit | 638da51a786c279cf7769afbb6fdb56cc4c6c867 (patch) | |
tree | 19e0232c06514cbf8382c6cb7a525b31921ef970 /openbsc/src/libcommon/gsm_data_shared.c | |
parent | 9d50a27695fe512df2b429ecae93e66941a3f7e9 (diff) |
lchan: Introduce a BROKEN state for the lchan
If the CHAN ACTIV is NACKED we set the state backto NONE. This is
problematic as our channel allocator will allocate from the front
or from the back and if the channel is early in the list it might
cause permanent failures. Introduce a BROKEN state and use it when
the channel activation is failing for an unknown reason. Copy the
cause so it can be inspected later.
Diffstat (limited to 'openbsc/src/libcommon/gsm_data_shared.c')
-rw-r--r-- | openbsc/src/libcommon/gsm_data_shared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libcommon/gsm_data_shared.c b/openbsc/src/libcommon/gsm_data_shared.c index eaf53b770..ef29d6a17 100644 --- a/openbsc/src/libcommon/gsm_data_shared.c +++ b/openbsc/src/libcommon/gsm_data_shared.c @@ -109,6 +109,7 @@ static const struct value_string lchan_s_names[] = { { LCHAN_S_INACTIVE, "INACTIVE" }, { LCHAN_S_REL_REQ, "RELEASE REQUESTED" }, { LCHAN_S_REL_ERR, "RELEASE DUE ERROR" }, + { LCHAN_S_BROKEN, "BROKEN UNUSABLE" }, { 0, NULL } }; |