aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/bsc_sccp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bsc/bsc_sccp.c')
-rw-r--r--src/osmo-bsc/bsc_sccp.c9
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)