Change in osmo-msc[master]: Add vty option to globally enable LCLS

Max gerrit-no-reply at lists.osmocom.org
Tue Mar 26 13:46:34 UTC 2019


Max has uploaded this change for review. ( https://gerrit.osmocom.org/13421


Change subject: Add vty option to globally enable LCLS
......................................................................

Add vty option to globally enable LCLS

It's disabled by default and will be used in follow-up patches.

Change-Id: Ibb587e6ae47cff71f5bf2e2d22c1da86cd7e1762
---
M include/osmocom/msc/vlr.h
M src/libmsc/msc_vty.c
2 files changed, 21 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/21/13421/1

diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h
index d2d59c7..308a110 100644
--- a/include/osmocom/msc/vlr.h
+++ b/include/osmocom/msc/vlr.h
@@ -274,6 +274,7 @@
 		bool retrieve_imeisv_early;
 		bool retrieve_imeisv_ciphered;
 		bool assign_tmsi;
+		bool lcls_enabled;
 		bool check_imei_rqd;
 		int auth_tuple_max_reuse_count;
 		bool auth_reuse_old_sets_on_error;
diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c
index a79f451..3d812e7 100644
--- a/src/libmsc/msc_vty.c
+++ b/src/libmsc/msc_vty.c
@@ -404,6 +404,22 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN(cfg_msc_lcls_enable, cfg_msc_lcls_enable_cmd,
+      "lcls-enable",
+      "Enable LCLS for all calls.\n")
+{
+	gsmnet->vlr->cfg.lcls_enabled = true;
+	return CMD_SUCCESS;
+}
+
+DEFUN(cfg_msc_no_lcls_enable, cfg_msc_no_lcls_enable_cmd,
+      "no lcls-enable",
+      "Disable LCLS for all calls.\n")
+{
+	gsmnet->vlr->cfg.lcls_enabled = false;
+	return CMD_SUCCESS;
+}
+
 DEFUN(cfg_msc_cs7_instance_a,
       cfg_msc_cs7_instance_a_cmd,
       "cs7-instance-a <0-15>",
@@ -513,6 +529,8 @@
 		gsmnet->ncss_guard_timeout, VTY_NEWLINE);
 	vty_out(vty, " %sassign-tmsi%s",
 		gsmnet->vlr->cfg.assign_tmsi? "" : "no ", VTY_NEWLINE);
+	vty_out(vty, " %slcls-enable%s",
+		gsmnet->vlr->cfg.lcls_enabled ? "" : "no ", VTY_NEWLINE);
 
 	vty_out(vty, " cs7-instance-a %u%s", gsmnet->a.cs7_instance,
 		VTY_NEWLINE);
@@ -1673,12 +1691,14 @@
 	install_element(CONFIG_NODE, &cfg_msc_cmd);
 	install_node(&msc_node, config_write_msc);
 	install_element(MSC_NODE, &cfg_msc_assign_tmsi_cmd);
+	install_element(MSC_NODE, &cfg_msc_lcls_enable_cmd);
 	install_element(MSC_NODE, &cfg_msc_mncc_internal_cmd);
 	install_element(MSC_NODE, &cfg_msc_mncc_external_cmd);
 	install_element(MSC_NODE, &cfg_msc_mncc_guard_timeout_cmd);
 	install_element(MSC_NODE, &cfg_msc_deprecated_mncc_guard_timeout_cmd);
 	install_element(MSC_NODE, &cfg_msc_ncss_guard_timeout_cmd);
 	install_element(MSC_NODE, &cfg_msc_no_assign_tmsi_cmd);
+	install_element(MSC_NODE, &cfg_msc_no_lcls_enable_cmd);
 	install_element(MSC_NODE, &cfg_msc_auth_tuple_max_reuse_count_cmd);
 	install_element(MSC_NODE, &cfg_msc_auth_tuple_reuse_on_error_cmd);
 	install_element(MSC_NODE, &cfg_msc_check_imei_rqd_cmd);

-- 
To view, visit https://gerrit.osmocom.org/13421
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb587e6ae47cff71f5bf2e2d22c1da86cd7e1762
Gerrit-Change-Number: 13421
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190326/2590df72/attachment.html>


More information about the gerrit-log mailing list