[PATCH] osmo-msc[master]: iucs: Add a function to return the connection ID for the IU ...

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/gerrit-log@lists.osmocom.org/.

daniel gerrit-no-reply at lists.osmocom.org
Thu Feb 15 16:53:46 UTC 2018


Review at  https://gerrit.osmocom.org/6501

iucs: Add a function to return the connection ID for the IU SCCP conn

Change-Id: Ica4a7f463fcf1bd67fe082296cecea8d10f2fc5b
---
M include/osmocom/msc/iucs.h
M src/libmsc/iu_dummy.c
M src/libmsc/iucs.c
3 files changed, 12 insertions(+), 0 deletions(-)


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

diff --git a/include/osmocom/msc/iucs.h b/include/osmocom/msc/iucs.h
index a48a316..8b22104 100644
--- a/include/osmocom/msc/iucs.h
+++ b/include/osmocom/msc/iucs.h
@@ -8,3 +8,5 @@
 struct gsm_subscriber_connection *subscr_conn_lookup_iu(struct gsm_network *network,
 							struct ranap_ue_conn_ctx *ue);
 int iu_rab_act_cs(struct gsm_trans *trans);
+
+uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue);
diff --git a/src/libmsc/iu_dummy.c b/src/libmsc/iu_dummy.c
index 4191c5a..bb53367 100644
--- a/src/libmsc/iu_dummy.c
+++ b/src/libmsc/iu_dummy.c
@@ -90,4 +90,10 @@
 	return 0;
 }
 
+uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue)
+{
+	LOGP(DLGLOBAL, LOGL_INFO, "iu_get_conn_id() dummy called, returning BOGUS value\n");
+	return 23;
+}
+
 #endif
diff --git a/src/libmsc/iucs.c b/src/libmsc/iucs.c
index 7bb45b2..d6da1f7 100644
--- a/src/libmsc/iucs.c
+++ b/src/libmsc/iucs.c
@@ -251,3 +251,7 @@
 	return 0;
 }
 
+uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue)
+{
+	return ue->conn_id;
+}

-- 
To view, visit https://gerrit.osmocom.org/6501
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica4a7f463fcf1bd67fe082296cecea8d10f2fc5b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: daniel <dwillmann at sysmocom.de>



More information about the gerrit-log mailing list