diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-08-21 15:46:16 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-08-24 12:23:50 +0200 |
commit | c62216b4fc2a42ff9a8bea016565a772c585e2fb (patch) | |
tree | 6a418c62e40aa61c691cfcd26c9474962e42cb12 /src/pcu_vty_functions.cpp | |
parent | 6835cead8c9e13fbbbb7b100a4c18a031f92421f (diff) |
ms/vty: Show old TBFs
This commit extends the 'show ms imsi|tlli' command to show the old
TBFs, too.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r-- | src/pcu_vty_functions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index c8f81988..917c4eeb 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -59,6 +59,7 @@ int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data) static int show_ms(struct vty *vty, GprsMs *ms) { unsigned i; + LListHead<gprs_rlcmac_tbf> *i_tbf; vty_out(vty, "MS TLLI=%08x, IMSI=%s%s", ms->tlli(), ms->imsi(), VTY_NEWLINE); vty_out(vty, " Timing advance (TA): %d%s", ms->ta(), VTY_NEWLINE); @@ -109,6 +110,14 @@ static int show_ms(struct vty *vty, GprsMs *ms) ms->dl_tbf()->state_name(), VTY_NEWLINE); + llist_for_each(i_tbf, &ms->old_tbfs()) + vty_out(vty, " Old %-19s TFI=%d, state=%s%s", + i_tbf->entry()->direction == GPRS_RLCMAC_UL_TBF ? + "Uplink TBF:" : "Downlink TBF:", + i_tbf->entry()->tfi(), + i_tbf->entry()->state_name(), + VTY_NEWLINE); + return CMD_SUCCESS; } |