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
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index c8f8198..917c4ee 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -59,6 +59,7 @@
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 @@
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;
}