aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-30 17:49:53 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-03 15:05:29 +0000
commit5441e1f2f0cbaf69a6b2aa031db9088bdd9d9199 (patch)
tree7f13e9d618aecc3cfec519a34bae1f1cd59854d0 /src
parent5d7f757e4918da9d26189f6c6a5f96938234d309 (diff)
TBF: show assignment kind in vty
Diffstat (limited to 'src')
-rw-r--r--src/pcu_vty_functions.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index eb15aa65..bb341f8a 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -49,9 +49,11 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
tbf->ta(),
tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL",
tbf->imsi(), VTY_NEWLINE);
- vty_out(vty, " created=%lu state=%08x 1st_TS=%d 1st_cTS=%d ctrl_TS=%d "
- "MS_CLASS=%d/%d%s",
- tbf->created_ts(), tbf->state_flags, tbf->first_ts,
+ vty_out(vty, " created=%lu state=%08x [CCCH:%u, PACCH:%u] 1st_TS=%d 1st_cTS=%d ctrl_TS=%d MS_CLASS=%d/%d%s",
+ tbf->created_ts(), tbf->state_flags,
+ tbf->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH),
+ tbf->state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH),
+ tbf->first_ts,
tbf->first_common_ts, tbf->control_ts,
tbf->ms_class(),
tbf->ms() ? tbf->ms()->egprs_ms_class() : -1,