lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43465?usp=email )
Change subject: libvlr: add FIXME for separation of local and foreign TMSI
......................................................................
libvlr: add FIXME for separation of local and foreign TMSI
Change-Id: I62ddaa17f7f627d61f26db5e299e01ef016df045
---
M src/libvlr/vlr.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/65/43465/1
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index 4354564..cc03f93 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -574,6 +574,7 @@
const char *file,
int line)
{
+ /* FIXME: we need to add a type to the tmsi (local, foreign) so overlaps doesn't matter */
struct vlr_subscr *vsub;
vsub = _vlr_subscr_find_by_tmsi(vlr, tmsi, use, file, line);
if (vsub) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43465?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I62ddaa17f7f627d61f26db5e299e01ef016df045
Gerrit-Change-Number: 43465
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43466?usp=email )
Change subject: RFC: libvlr: use a talloc_zero instead of OTC_SELECT
......................................................................
RFC: libvlr: use a talloc_zero instead of OTC_SELECT
Use a temporary talloc object for a rare error message instead
of using OTC_SELECT which requires the usage of a different
osmo_loop
Change-Id: I879b7ac6126d896a7bdae7ab4cbfe0655ac35760
---
M src/libvlr/vlr.c
1 file changed, 7 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/66/43466/1
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index cc03f93..a7134ce 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -599,10 +599,13 @@
struct vlr_instance *vlr = exists->vlr;
int i;
int j;
- LOGVSUBP(LOGL_NOTICE, vsub,
- "There is an existing subscriber for IMSI %s used by %s, replacing with this VLR subscr, used by %s\n",
- exists->imsi, osmo_use_count_to_str_c(OTC_SELECT, &exists->use_count),
- osmo_use_count_to_str_c(OTC_SELECT, &vsub->use_count));
+ void *tmp = talloc_zero_size(vsub, 4);
+ LOGVLR(LOGL_NOTICE,
+ "There is an existing subscriber for IMSI %s used by %s, replacing with new VLR subscr: %s used by %s\n",
+ exists->imsi, osmo_use_count_to_str_c(tmp, &exists->use_count),
+ vlr_subscr_name(vsub),
+ osmo_use_count_to_str_c(tmp, &vsub->use_count));
+ talloc_free(tmp);
if (!vsub->msisdn[0])
OSMO_STRLCPY_ARRAY(vsub->msisdn, exists->msisdn);
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43466?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I879b7ac6126d896a7bdae7ab4cbfe0655ac35760
Gerrit-Change-Number: 43466
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43469?usp=email )
Change subject: gprs_routing_area: add FIXMEs for unit tests
......................................................................
gprs_routing_area: add FIXMEs for unit tests
Change-Id: Ia8bb1c4b6ae77bd0e5a44171d99851c74c083835
---
M src/sgsn/gprs_routing_area.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/69/43469/1
diff --git a/src/sgsn/gprs_routing_area.c b/src/sgsn/gprs_routing_area.c
index 4400d6d..abb613e 100644
--- a/src/sgsn/gprs_routing_area.c
+++ b/src/sgsn/gprs_routing_area.c
@@ -327,6 +327,11 @@
ra_created = true;
}
+ /* FIXME: write a unit tests
+ * move a present cell into a new routing area
+ * The old cell isn't found then!
+ */
+
if (!ra_created) {
cell = sgsn_ra_geran_get_cell_by_ra(ra, cgi_ps->cell_identity);
if (cell && cell->ran_type == RA_TYPE_GERAN_Gb) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43469?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Ia8bb1c4b6ae77bd0e5a44171d99851c74c083835
Gerrit-Change-Number: 43469
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43470?usp=email )
Change subject: gprs_gmm: Set RAT on the VLR object
......................................................................
gprs_gmm: Set RAT on the VLR object
Will be used in GSUP messages.
Change-Id: I66270d07371501afc9e6bc00c654d7612543e0ca
---
M src/sgsn/gprs_gmm.c
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/70/43470/1
diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c
index f2f9459..12c0cb0 100644
--- a/src/sgsn/gprs_gmm.c
+++ b/src/sgsn/gprs_gmm.c
@@ -1828,6 +1828,15 @@
goto rejected;
}
+ switch (mmctx->ran_type) {
+ case MM_CTX_T_GERAN_Gb:
+ mmctx->vsub->cs.attached_via_ran = OSMO_RAT_GERAN_A;
+ break;
+ case MM_CTX_T_UTRAN_Iu:
+ mmctx->vsub->cs.attached_via_ran = OSMO_RAT_UTRAN_IU;
+ break;
+ }
+
mmctx->attach_rau.old_rai = req.old_rai;
/* FIXME: copy stuff from VSUB over */
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43470?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I66270d07371501afc9e6bc00c654d7612543e0ca
Gerrit-Change-Number: 43470
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43471?usp=email )
Change subject: WIP: libvlr: add RAT type to GSUP messages
......................................................................
WIP: libvlr: add RAT type to GSUP messages
The HLR should know which RAT is used.
This commit will be replaced by msc commit
Change-Id: Id1951f2dc201475c3decb411a81a4d12a61b8ed7
---
M src/libvlr/vlr.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/71/43471/1
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index a7134ce..20f14b4 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -903,6 +903,7 @@
gsup_msg.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST;
gsup_msg.cn_domain = vlr_is_cs(vsub->vlr) ? OSMO_GSUP_CN_DOMAIN_CS : OSMO_GSUP_CN_DOMAIN_PS;
+ gsup_msg.current_rat_type = vsub->cs.attached_via_ran;
rc = vlr_subscr_tx_gsup_message(vsub, &gsup_msg);
return rc;
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43471?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Id1951f2dc201475c3decb411a81a4d12a61b8ed7
Gerrit-Change-Number: 43471
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43472?usp=email )
Change subject: libvlr: auth: never re-use auth tuples for authentication
......................................................................
libvlr: auth: never re-use auth tuples for authentication
The auth tuples should only ever sent once over the air for authentication.
Later the auth tuples may be re-used multiple times for ciphering, but can't
be re-used other the air for authentication.
Change-Id: I102e0cca101525b11ae2b0f5796b60e263205d61
---
M src/libvlr/vlr_auth_fsm.c
1 file changed, 5 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/72/43472/1
diff --git a/src/libvlr/vlr_auth_fsm.c b/src/libvlr/vlr_auth_fsm.c
index b3bd236..68c9a54 100644
--- a/src/libvlr/vlr_auth_fsm.c
+++ b/src/libvlr/vlr_auth_fsm.c
@@ -119,12 +119,11 @@
return at;
}
-/* Return an auth tuple and increment its use count. */
+/* Return an auth tuple */
static struct vlr_auth_tuple *
-vlr_subscr_get_auth_tuple(struct vlr_subscr *vsub, int max_reuse_count)
+vlr_subscr_get_auth_tuple(struct vlr_subscr *vsub)
{
- struct vlr_auth_tuple *at = _vlr_subscr_next_auth_tuple(vsub,
- max_reuse_count);
+ struct vlr_auth_tuple *at = _vlr_subscr_next_auth_tuple(vsub, 0);
if (!at)
return NULL;
at->use_count++;
@@ -311,7 +310,7 @@
bool use_umts_aka;
/* Caller ensures we have vectors available */
- at = vlr_subscr_get_auth_tuple(vsub, afp->auth_tuple_max_reuse_count);
+ at = vlr_subscr_get_auth_tuple(vsub);
if (!at) {
LOGPFSML(fi, LOGL_ERROR, "A previous check ensured that an"
" auth tuple was available, but now there is in fact"
@@ -350,7 +349,7 @@
afp->auth_tuple_max_reuse_count = vsub->vlr->cfg.auth_tuple_max_reuse_count;
/* Check if we have vectors available */
- if (!vlr_subscr_has_auth_tuple(vsub, afp->auth_tuple_max_reuse_count)) {
+ if (!vlr_subscr_has_auth_tuple(vsub, 0)) {
/* Obtain_Authentication_Sets_VLR */
int rc = vlr_subscr_req_sai(vsub, NULL, NULL);
if (rc < 0)
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43472?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I102e0cca101525b11ae2b0f5796b60e263205d61
Gerrit-Change-Number: 43472
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>