diff options
-rw-r--r-- | src/bts.cpp | 1 | ||||
-rw-r--r-- | src/bts.h | 3 | ||||
-rw-r--r-- | src/tbf.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index f76b31da..fb43b3d2 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -67,6 +67,7 @@ static const struct rate_ctr_desc bts_ctr_description[] = { { "llc.dropped", "Dropped Frames "}, { "llc.scheduled", "Scheduled Frames "}, { "rach.requests", "RACH requests "}, + { "poll.timedout", "Poll Timeout "}, }; static const struct rate_ctr_group_desc bts_ctrg_desc = { @@ -215,6 +215,7 @@ public: CTR_LLC_FRAME_DROPPED, CTR_LLC_FRAME_SCHED, CTR_RACH_REQUESTS, + CTR_POLL_TIMEDOUT, }; enum { @@ -274,6 +275,7 @@ public: void llc_dropped_frame(); void llc_frame_sched(); void rach_frame(); + void poll_timedout(); /* * Below for C interface for the VTY @@ -370,6 +372,7 @@ CREATE_COUNT_INLINE(llc_timedout_frame, CTR_LLC_FRAME_TIMEDOUT); CREATE_COUNT_INLINE(llc_dropped_frame, CTR_LLC_FRAME_DROPPED); CREATE_COUNT_INLINE(llc_frame_sched, CTR_LLC_FRAME_SCHED); CREATE_COUNT_INLINE(rach_frame, CTR_RACH_REQUESTS); +CREATE_COUNT_INLINE(poll_timedout, CTR_POLL_TIMEDOUT); #undef CREATE_COUNT_INLINE diff --git a/src/tbf.cpp b/src/tbf.cpp index 1d72ffcd..66d62212 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -346,6 +346,8 @@ void gprs_rlcmac_tbf::poll_timeout() LOGP(DRLCMAC, LOGL_NOTICE, "%s poll timeout\n", tbf_name(this)); + bts->poll_timedout(); + poll_state = GPRS_RLCMAC_POLL_NONE; if (ul_ack_state == GPRS_RLCMAC_UL_ACK_WAIT_ACK) { |