diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-09-17 17:54:39 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-10-09 00:26:02 +0200 |
commit | 4ae338d5b6d737fd37826c02e27e2553cf23e2a3 (patch) | |
tree | 4ad03eb36890e9fcf1fce111628b6a4b027a6214 /src/osmo-bsc/bsc_sccp.c | |
parent | 1ebc0422d66c23be9294d2dc243dcba62f31ecd4 (diff) |
LCS: implement the bulk of Location Services
Depends: I4d7302a4853518916b6b425e710c10568eb2ffe5 (libosmocore)
Change-Id: I28314ba97df86a118497e9b2770e2e6e2484e872
Diffstat (limited to 'src/osmo-bsc/bsc_sccp.c')
-rw-r--r-- | src/osmo-bsc/bsc_sccp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/osmo-bsc/bsc_sccp.c b/src/osmo-bsc/bsc_sccp.c index 9d4289f3d..0cd1dc9f3 100644 --- a/src/osmo-bsc/bsc_sccp.c +++ b/src/osmo-bsc/bsc_sccp.c @@ -23,6 +23,7 @@ #include <osmocom/bsc/gsm_data.h> #include <osmocom/bsc/bsc_msc_data.h> +#include <osmocom/bsc/lb.h> /* We need an unused SCCP conn_id across all SCCP users. */ int bsc_sccp_inst_next_conn_id(struct osmo_sccp_instance *sccp) @@ -47,7 +48,13 @@ int bsc_sccp_inst_next_conn_id(struct osmo_sccp_instance *sccp) } } - /* Future for LCS: also check Lb-interface conn IDs here */ + if (bsc_gsmnet->smlc->sccp == sccp + && conn->lcs.lb.state != SUBSCR_SCCP_ST_NONE) { + if (conn_id == conn->lcs.lb.conn_id) { + conn_id_already_used = true; + break; + } + } } if (!conn_id_already_used) |