aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-28 19:06:09 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-01 13:58:13 +0100
commitbf49f042d432780fe37c53aed5e4e3f34ac80793 (patch)
treed2c25383480fb572ccf65cef8fce33f9caa15fc4 /src/tbf.cpp
parentaa9daa1b9dfc74deb2ab4993f74ba61ee2712f73 (diff)
tbf/vty: Move tbf_print_vty_info to pcu_vty_functions.cpp
This function is similar to the show_ms function already present in the target file. Since the TBF lists will be turned into LListHead based lists, they will get an iteration function in pcu_vty_functions.cpp, too. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index ea1b89d7..b3d0c0dd 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -1140,25 +1140,3 @@ uint8_t gprs_rlcmac_tbf::ul_slots() const
return slots;
}
-
-void tbf_print_vty_info(struct vty *vty, struct llist_head *ltbf)
-{
- gprs_rlcmac_tbf *tbf = llist_pods_entry(ltbf, gprs_rlcmac_tbf);
-
- vty_out(vty, "TBF: TFI=%d TLLI=0x%08x (%s) DIR=%s IMSI=%s%s", tbf->tfi(),
- tbf->tlli(), tbf->is_tlli_valid() ? "valid" : "invalid",
- tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL",
- tbf->imsi(), VTY_NEWLINE);
- vty_out(vty, " created=%lu state=%08x 1st_TS=%d 1st_cTS=%d ctrl_TS=%d "
- "MS_CLASS=%d%s",
- tbf->created_ts(), tbf->state_flags, tbf->first_ts,
- tbf->first_common_ts, tbf->control_ts, tbf->ms_class(),
- VTY_NEWLINE);
- vty_out(vty, " TS_alloc=");
- for (int i = 0; i < 8; i++) {
- if (tbf->pdch[i])
- vty_out(vty, "%d ", i);
- }
- vty_out(vty, " CS=%d%s%s", tbf->ms() ? tbf->ms()->current_cs_dl() : 1,
- VTY_NEWLINE, VTY_NEWLINE);
-}