daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39704?usp=email )
Change subject: sgsn_libgtp: Update struct pdp_t with RAT type when receiving an SGSN ctx ......................................................................
sgsn_libgtp: Update struct pdp_t with RAT type when receiving an SGSN ctx
Change-Id: I998ba8cbd586bc19894e157bfa281963bf27de6e --- M src/sgsn/sgsn_libgtp.c 1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/04/39704/1
diff --git a/src/sgsn/sgsn_libgtp.c b/src/sgsn/sgsn_libgtp.c index 182e898..fb52cac 100644 --- a/src/sgsn/sgsn_libgtp.c +++ b/src/sgsn/sgsn_libgtp.c @@ -222,7 +222,14 @@ memcpy(lib_pdp->gsnlu.v, &sgsn->cfg.gtp_listenaddr.sin_addr, sizeof(sgsn->cfg.gtp_listenaddr.sin_addr));
- + /* Encode RAT Type according to TS 29.060 7.7.50 + Update pdp_t with ran type of mm ctx */ + lib_pdp->rattype.l = 1; + if (pctx->mm->ran_type == MM_CTX_T_UTRAN_Iu) + lib_pdp->rattype.v[0] = 1; + else + lib_pdp->rattype.v[0] = 2; + lib_pdp->rattype_given = 1;
pctx->state = PDP_STATE_NEED_UPDATE_GSN;