From 81a04f7d79ab290028074cfa626498abfdb09937 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Thu, 28 Jan 2016 16:14:58 +0100 Subject: tbf: Mark control slots in VTY TBF out Put an '!' after the PDCH number in the output of the 'show tbf' command, if is_control_ts() yields true. Sponsored-by: On-Waves ehf --- src/pcu_vty_functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index a8b5ddd7..6567962d 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -56,8 +56,9 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf) VTY_NEWLINE); vty_out(vty, " TS_alloc="); for (int i = 0; i < 8; i++) { + bool is_ctrl = tbf->is_control_ts(i); if (tbf->pdch[i]) - vty_out(vty, "%d ", i); + vty_out(vty, "%d%s ", i, is_ctrl ? "!" : ""); } vty_out(vty, " CS=%s WS=%d", tbf->current_cs().name(), tbf->window()->ws()); -- cgit v1.2.3