aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-05 20:46:16 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-05 23:18:53 +0100
commit50cc22a30c8d62af19551dc77819f0d9d6012fa1 (patch)
tree33345b34fc27b88f8f5a91e681c5f18ab2f199d6 /include/osmo-bts
parent845e995b5a74da808d48a25b36fd93afcde3f152 (diff)
Print much more information during 'show lchan'
This adds printing of remote RTP IP/Port, LAPDm SAPI information, MS Timing offset, propagation delay, encryption algorithm+state, loopback status and radio link failure counter to the "show lchan" command. It also adds TODO comments fro those bits that are not yet printed but which would make sense to print. Change-Id: Ic4bc47638b7b402aee9344dc912745a9929c37f4
Diffstat (limited to 'include/osmo-bts')
-rw-r--r--include/osmo-bts/gsm_data_shared.h5
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 a1ac27af..f694114a 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -345,6 +345,11 @@ struct gsm_lchan {
struct msgb *pending_rel_ind_msg;
};
+extern const struct value_string lchan_ciph_state_names[];
+static inline const char *lchan_ciph_state_name(uint8_t state) {
+ return get_value_string(lchan_ciph_state_names, state);
+}
+
enum {
TS_F_PDCH_ACTIVE = 0x1000,
TS_F_PDCH_ACT_PENDING = 0x2000,