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
This commit is contained in:
Jacob Erlbeck 2015-08-21 15:46:16 +02:00
parent 6835cead8c
commit c62216b4fc
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}