aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 41a94bcd..63c8070d 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -689,10 +689,7 @@ struct msgb *gprs_rlcmac_tbf::llc_dequeue(bssgp_bvc_ctx *bctx)
tv = (struct timeval *)msg->data;
msgb_pull(msg, sizeof(*tv));
- /* Timeout is infinite */
- if (tv->tv_sec == 0 && tv->tv_usec == 0)
- break;
- if (timercmp(&tv_now, tv, >)) {
+ if (gprs_llc::is_frame_expired(&tv_now, tv)) {
LOGP(DRLCMACDL, LOGL_NOTICE, "%s Discarding LLC PDU "
"because lifetime limit reached\n",
tbf_name(this));