aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authoraravind sirsikar <arvind.sirsikar@radisys.com>2017-01-24 12:36:08 +0530
committerHarald Welte <laforge@gnumonks.org>2017-01-24 13:11:51 +0000
commite9a138e11111f509f988807bbdc5ca8cce2b3d3d (patch)
tree5c957d735e22ffad0cdc65e842b39a9e6c61ad6f /src/tbf.h
parent1d8744ce967f038e4bede584845b8326d9f66c2a (diff)
Handle packet access reject during packet resource request
When Packet resource request is received, PCU will generate the packet access reject if no resources are present. The encoding is done based on section 7.1.3.2.1 and 8.1.2.5 of 44.060 version 7.27.0 Release 7. This patch also includes the test case to validate the generated packet access reject message. This patch is integration tested on Osmo-trx setup with Ettus B210 board and LG F70 MS with some simulation code changes in Osmo-pcu. Change-Id: I05ff25124b58905586caa0c0c37023d69724f121
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 03895953..09e31220 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -43,6 +43,7 @@ class GprsMs;
#define Tassign_agch 0,200000 /* waiting after IMM.ASS confirm */
#define Tassign_pacch 2,0 /* timeout for pacch assigment */
+#define Treject_pacch 0,2000 /* timeout for tbf reject for PRR*/
enum gprs_rlcmac_tbf_state {
GPRS_RLCMAC_NULL = 0, /* new created TBF */
@@ -316,6 +317,9 @@ struct gprs_rlcmac_dl_tbf *tbf_alloc_dl_tbf(struct gprs_rlcmac_bts *bts,
void tbf_free(struct gprs_rlcmac_tbf *tbf);
+struct gprs_rlcmac_ul_tbf *handle_tbf_reject(struct gprs_rlcmac_bts *bts,
+ GprsMs *ms, uint32_t tlli, uint8_t trx_no, uint8_t ts_no);
+
int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf);
void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T,