[PATCH 7/7] sgsn: Re-add searching for MM ctx based on TLLI / P-TMSI matches

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Freyther holger at freyther.de
Fri Jan 15 17:03:02 UTC 2016


> On 04 Jan 2016, at 18:43, Jacob Erlbeck <jerlbeck at sysmocom.de> wrote:


Dear Jacob,

> diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
> index 6e7e5f1..212c7d7 100644
> --- a/openbsc/src/gprs/gprs_gmm.c
> +++ b/openbsc/src/gprs/gprs_gmm.c
> @@ -1172,13 +1172,33 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg,
> 		 * if the TLLI matches foreign_tlli (P-TMSI). Note that this
> 		 * is an optimization to avoid the RA reject (impl detached)
> 		 * below, which will cause a new attach cycle. */
> -	}
> -

the todo above reads:

 		/* TODO: Check if there is an MM CTX with old_ra_id and
 		 * the P-TMSI (if given, reguired for UMTS) or as last resort
 		 * if the TLLI matches foreign_tlli (P-TMSI). Note that this
 		 * is an optimization to avoid the RA reject (impl detached)
 		 * below, which will cause a new attach cycle. */

I think this todo is addressed with sgsn_mm_ctx_by_tlli_and_ptmsi? Can the comment
be removed?

What about the test? Do we have one that gets the "XID RESET" we expect?

holger


More information about the OpenBSC mailing list