From c62216b4fc2a42ff9a8bea016565a772c585e2fb Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 21 Aug 2015 15:46:16 +0200 Subject: 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 --- src/pcu_vty_functions.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 *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; } -- cgit v1.2.3