aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-23 16:27:50 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-23 16:27:50 +0100
commitb18aedcc509fd5bd97d2b20ce893a85840e13f64 (patch)
treeac8a694910a4173e1c3badef17823858ed1f44a0 /src/tbf.h
parent9525567d7725b4808421dc7dda26e550111214f3 (diff)
tbf: Make the ws and sns number "private" (they should also be const)
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 9d822b0..ad13183 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -133,6 +133,8 @@ struct gprs_rlcmac_tbf {
const char *imsi() const;
void assign_imsi(const char *imsi);
+ uint16_t sns() const;
+
struct llist_head list;
uint32_t state_flags;
enum gprs_rlcmac_tbf_direction direction;
@@ -155,8 +157,8 @@ struct gprs_rlcmac_tbf {
enum gprs_rlcmac_tbf_poll_state poll_state;
uint32_t poll_fn; /* frame number to poll */
- uint16_t ws; /* window size */
- uint16_t sns; /* sequence number space */
+ uint16_t m_ws; /* window size */
+ uint16_t m_sns; /* sequence number space */
/* Please note that all variables here will be reset when changing
* from WAIT RELEASE back to FLOW state (re-use of TBF).
@@ -303,5 +305,10 @@ inline const char *gprs_rlcmac_tbf::imsi() const
return m_imsi;
}
+inline uint16_t gprs_rlcmac_tbf::sns() const
+{
+ return m_sns;
+}
+
const char *tbf_name(gprs_rlcmac_tbf *tbf);