aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty_functions.cpp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-15 11:21:57 +0100
committerMax <msuraev@sysmocom.de>2018-01-04 10:15:59 +0000
commita4f570fe7a9e511d04ba3aade4a144b4cb74deb8 (patch)
tree22cbfd891c3f3dfa9f0698850bc9c0a520bb597a /src/pcu_vty_functions.cpp
parent7df82d412eca327b94f6040a140d1f8d5d9c7c53 (diff)
window: move encoding into functions
* move window size encoding and writing into separate functions * introduce necessary TBF wrappers to avoid direct m_window access This is part of preparation work to move to separate UL/DL windows. Related: OS#1759 Change-Id: I60184d5049bc7d7b119df5a9eb82d1c4b788c840
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r--src/pcu_vty_functions.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index f1dd25c4..0a80a235 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -64,13 +64,12 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
}
if (tbf->trx != NULL)
vty_out(vty, " TRX_ID=%d", tbf->trx->trx_no);
- vty_out(vty, " CS=%s WS=%d",
- tbf->current_cs().name(), tbf->window()->ws());
+ vty_out(vty, " CS=%s", tbf->current_cs().name());
if (ul_tbf) {
gprs_rlc_ul_window *win = &ul_tbf->m_window;
- vty_out(vty, " V(Q)=%d V(R)=%d",
- win->v_q(), win->v_r());
+ vty_out(vty, " WS=%u V(Q)=%d V(R)=%d",
+ ul_tbf->window_size(), win->v_q(), win->v_r());
vty_out(vty, "%s", VTY_NEWLINE);
vty_out(vty, " TBF Statistics:%s", VTY_NEWLINE);
if(GprsCodingScheme::GPRS == tbf->ms()->mode()) {
@@ -81,8 +80,8 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
}
if (dl_tbf) {
gprs_rlc_dl_window *win = &dl_tbf->m_window;
- vty_out(vty, " V(A)=%d V(S)=%d nBSN=%d%s",
- win->v_a(), win->v_s(), win->resend_needed(),
+ vty_out(vty, " WS=%u V(A)=%d V(S)=%d nBSN=%d%s",
+ dl_tbf->window_size(), win->v_a(), win->v_s(), win->resend_needed(),
win->window_stalled() ? " STALLED" : "");
vty_out(vty, "%s", VTY_NEWLINE);
vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs);