diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-04-08 12:14:56 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2016-04-08 12:14:56 +0200 |
commit | 5e007d9445b1fe0233b8d4618d6c1a01ec446788 (patch) | |
tree | 18340eba4ef807351b8770e1e70b35d9d63371ce /openbsc/src/gprs/gprs_sgsn.c | |
parent | 42024336fef37effeb04e61d819ef46e1fd0f2db (diff) |
gprs: Use different RAB IDs for activation
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r-- | openbsc/src/gprs/gprs_sgsn.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index 1a77daa9d..8c188bf59 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/src/gprs/gprs_sgsn.c @@ -105,6 +105,10 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_by_ue_ctx(const void *uectx) return NULL; } +uint8_t rab_id_from_mm_ctx(struct sgsn_mm_ctx *mm) +{ + return mm->iu.rab_id++; +} /* look-up a SGSN MM context based on TLLI + RAI */ struct sgsn_mm_ctx *sgsn_mm_ctx_by_tlli(uint32_t tlli, @@ -204,6 +208,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_iu(void *uectx) ctx->ran_type = MM_CTX_T_UTRAN_Iu; ctx->iu.ue_ctx = uectx; + ctx->iu.rab_id = 1; ctx->mm_state = GMM_DEREGISTERED; ctx->auth_triplet.key_seq = GSM_KEY_SEQ_INVAL; ctx->ctrg = rate_ctr_group_alloc(ctx, &mmctx_ctrg_desc, 0); |