aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-12 16:24:18 +0100
committerMax <msuraev@sysmocom.de>2018-01-12 16:37:45 +0100
commit00fd0df046c91022d7de1e46c433e7dfb7f5fce5 (patch)
tree65eb094d0c55f1cf1556edb4663d0d571f390454
parent9d7357e4fe67ad4a2f00d173ab769f56afb23980 (diff)
Don't access TBF internals in vty functions
Obtain corresponding window object of UL/DL TBF by using proper accessor function instead of direct access to private member. Change-Id: I89bcd2c2b0b6f120d40d20fd43c1e516de3e3950
-rw-r--r--src/pcu_vty_functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 0a80a235..001164c8 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -67,7 +67,7 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
vty_out(vty, " CS=%s", tbf->current_cs().name());
if (ul_tbf) {
- gprs_rlc_ul_window *win = &ul_tbf->m_window;
+ gprs_rlc_ul_window *win = ul_tbf->window();
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);
@@ -79,7 +79,7 @@ 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;
+ gprs_rlc_dl_window *win = dl_tbf->window();
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" : "");