Attention is currently required from: laforge, pespin.
Hello Jenkins Builder, laforge, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-msc/+/38411?usp=email
to look at the new patch set (#8).
The following approvals got outdated and were removed:
Code-Review+1 by pespin
Change subject: vlr: drop msc/debug.h header
......................................................................
vlr: drop msc/debug.h header
Since logging is done different, remove the MSC specific header.
Change-Id: I8fa2f16c07ef54be3a125c19e0990a68c4d5d2cf
---
M src/libvlr/vlr.c
M src/libvlr/vlr_access_req_fsm.c
M src/libvlr/vlr_auth_fsm.c
M src/libvlr/vlr_lu_fsm.c
M src/libvlr/vlr_sgs.c
M src/libvlr/vlr_sgs_fsm.c
M tests/msc_vlr/msc_vlr_test_authen_reuse.err
M tests/msc_vlr/msc_vlr_test_call.err
M tests/msc_vlr/msc_vlr_test_gsm_authen.err
M tests/msc_vlr/msc_vlr_test_gsm_ciph.err
M tests/msc_vlr/msc_vlr_test_hlr_reject.err
M tests/msc_vlr/msc_vlr_test_hlr_timeout.err
M tests/msc_vlr/msc_vlr_test_ms_timeout.err
M tests/msc_vlr/msc_vlr_test_no_authen.err
M tests/msc_vlr/msc_vlr_test_reject_concurrency.err
M tests/msc_vlr/msc_vlr_test_rest.err
M tests/msc_vlr/msc_vlr_test_ss.err
M tests/msc_vlr/msc_vlr_test_umts_authen.err
18 files changed, 2,493 insertions(+), 2,499 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/11/38411/8
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/38411?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I8fa2f16c07ef54be3a125c19e0990a68c4d5d2cf
Gerrit-Change-Number: 38411
Gerrit-PatchSet: 8
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Attention is currently required from: laforge.
lynxis lazus has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-msc/+/38410?usp=email )
Change subject: vlr: add a logging layer
......................................................................
Patch Set 6:
(2 comments)
Patchset:
PS5:
> whoy doesn't LOGVLR take a vlr as first pointer and then print the context? Like we usually do in o […]
I only converted the code, even there is also LOGVSUBP
File src/libvlr/vlr.c:
https://gerrit.osmocom.org/c/osmo-msc/+/38410/comment/b46b52dd_15f6ea22?usp… :
PS5, Line 457: LOGVLR(LOGL_DEBUG, "freeing VLR subscr %s (max total use count was %d)\n", vlr_subscr_name(vsub),
> So I'd suggest something like `LOGVSUB(vsub, LOGL_DEBUG, "freeing VLR subscr (max total use count wa […]
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/38410?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I6d87b38d6d7d704c7c7b2c90ad12187e4b953b8b
Gerrit-Change-Number: 38410
Gerrit-PatchSet: 6
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Mon, 21 Oct 2024 18:14:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Jenkins Builder has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-msc/+/38490?usp=email )
Change subject: vlr: add PS support
......................................................................
Patch Set 1:
(3 comments)
File src/libvlr/vlr_lu_fsm.c:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-19334):
https://gerrit.osmocom.org/c/osmo-msc/+/38490/comment/65a3a0e5_eede9c6e?usp… :
PS1, Line 575: static int lu_compl_vlr_timeout(struct osmo_fsm_inst *fi) {
open brace '{' following function definitions go on the next line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-19334):
https://gerrit.osmocom.org/c/osmo-msc/+/38490/comment/00981ee8_5a6e83cc?usp… :
PS1, Line 588: LOGPFSML(fi, LOGL_ERROR, "LU Compl timeout %i / %i \n", fi->T, lcvp->N);
unnecessary whitespace before a quoted newline
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-19334):
https://gerrit.osmocom.org/c/osmo-msc/+/38490/comment/ec7fd840_c7dc1334?usp… :
PS1, Line 588: LOGPFSML(fi, LOGL_ERROR, "LU Compl timeout %i / %i \n", fi->T, lcvp->N);
Use %d instead of %i
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/38490?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: Ie9ffeb140c9d354b3a0f4822e2619f623235add0
Gerrit-Change-Number: 38490
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Mon, 21 Oct 2024 18:10:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/38488?usp=email )
Change subject: WIP: vlr: extend the subscriber invalidate callback with reasons
......................................................................
WIP: vlr: extend the subscriber invalidate callback with reasons
The VLR must be allowed to notify the MSC if an subscriber becomes invalid.
There are multiple cases when this happens:
a) if the subscriber didn't do a Location Update Procedure within the
given periodic timer.
b) if the HLR do a Cancel Location Procedure with reason withdraw
c) if the HLR do a Cancel Location Procedure with reason update location.
Only in case b) must the user informed with the cause code by the HLR.
For c) the MSC must inform the MS about the reason.
FIXME: check case a) what must be done. Do we really need to inform the user?
Change-Id: Ie5b687318b106a230fcee52deba86649641004b3
---
M include/osmocom/vlr/vlr.h
M src/libmsc/gsm_04_08.c
M src/libvlr/vlr.c
3 files changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/88/38488/1
diff --git a/include/osmocom/vlr/vlr.h b/include/osmocom/vlr/vlr.h
index ed6438b..e99a1e2 100644
--- a/include/osmocom/vlr/vlr.h
+++ b/include/osmocom/vlr/vlr.h
@@ -251,7 +251,8 @@
* with this msc_conn_ref */
int (*subscr_assoc)(void *msc_conn_ref, struct vlr_subscr *vsub);
/* notify MSC that the given subscriber is no longer valid */
- void (*subscr_inval)(void *msc_conn_ref, struct vlr_subscr *vsub);
+ void (*subscr_inval)(void *msc_conn_ref, struct vlr_subscr *vsub,
+ enum gsm48_reject_value cause, bool cancel_by_update);
};
/* An instance of the VLR codebase */
diff --git a/src/libmsc/gsm_04_08.c b/src/libmsc/gsm_04_08.c
index d9e0b5f..7249fc7 100644
--- a/src/libmsc/gsm_04_08.c
+++ b/src/libmsc/gsm_04_08.c
@@ -1572,7 +1572,8 @@
return 0;
}
-static void msc_vlr_subscr_inval(void *msc_conn_ref, struct vlr_subscr *vsub)
+static void msc_vlr_subscr_inval(void *msc_conn_ref, struct vlr_subscr *vsub,
+ enum gsm48_reject_value cause, bool cancel_by_update)
{
/* Search vsub backwards to make sure msc_conn_ref is a valid msc_a instance. */
struct msub *msub;
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index b924f81..a4b0887 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -628,7 +628,7 @@
exists->imsi);
if (vlr->ops.subscr_inval)
- vlr->ops.subscr_inval(exists->msc_conn_ref, exists);
+ vlr->ops.subscr_inval(exists->msc_conn_ref, exists, 0, true);
vlr_subscr_free(exists);
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/38488?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: Ie5b687318b106a230fcee52deba86649641004b3
Gerrit-Change-Number: 38488
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-msc/+/38489?usp=email )
Change subject: WIP: vlr: when receiving imsi detach, purge the subscriber towards HLR
......................................................................
WIP: vlr: when receiving imsi detach, purge the subscriber towards HLR
The HLR must know when a subscriber has been disconnected.
FIXME: the unit tests doesn't expect a GSUP, which is wrong IMHO.
Change-Id: I9c2569c45e69b422ce26050b682e6eb26c1c2625
---
M src/libvlr/vlr.c
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/89/38489/1
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index a4b0887..c7d17f8 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -1512,8 +1512,15 @@
/* See TS 23.012 version 9.10.0 4.3.2.1 "Process Detach_IMSI_VLR" */
int vlr_subscr_rx_imsi_detach(struct vlr_subscr *vsub)
{
+ int rc = 0;
+
vlr_rate_ctr_inc(vsub->vlr, VLR_CTR_DETACH_BY_REQ);
- return vlr_subscr_detach(vsub);
+
+ if (!vsub->imsi_detached_flag)
+ rc = vlr_subscr_purge(vsub);
+
+ rc |= vlr_subscr_detach(vsub);
+ return rc;
}
/* Tear down any running FSMs due to MSC connection timeout.
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/38489?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I9c2569c45e69b422ce26050b682e6eb26c1c2625
Gerrit-Change-Number: 38489
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>