diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-01-28 16:14:58 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-08 00:45:37 +0100 |
commit | 81a04f7d79ab290028074cfa626498abfdb09937 (patch) | |
tree | 1d96fb5a4e4d13428ef0f3434478fa69a142ad17 /src/pcu_vty_functions.cpp | |
parent | 646da1ba8dea43035c5ade1949b1876e5e1cbfa0 (diff) |
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
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r-- | src/pcu_vty_functions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()); |