aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_main.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-23 17:40:14 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-23 18:25:19 +0200
commit366c7b0a0fdd96eee35805f67a1e914bd827bc3c (patch)
tree5b90ccaf1d48c7b575a38ee0e4f268690625e3b4 /openbsc/src/osmo-bsc/osmo_bsc_main.c
parent628cf3d0db67ecdd688a14f66439d746cd681b6f (diff)
osmo_bsc_main: use osmo_sccp_make_addr_pc_ssn() for SCCP addresses
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_main.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c
index 47113da7d..490a5ea6c 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_main.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c
@@ -272,14 +272,10 @@ int main(int argc, char **argv)
llist_for_each_entry(msc, &bsc_gsmnet->bsc_data->mscs, entry) {
/* FIXME: This has to come from a config file */
- msc->msc_con->g_calling_addr.presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC;
- msc->msc_con->g_calling_addr.ssn = SCCP_SSN_BSSAP;
- msc->msc_con->g_calling_addr.ri = OSMO_SCCP_RI_SSN_PC;
- msc->msc_con->g_calling_addr.pc = 42;
- msc->msc_con->g_called_addr.presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC;
- msc->msc_con->g_called_addr.ssn = SCCP_SSN_BSSAP;
- msc->msc_con->g_called_addr.ri = OSMO_SCCP_RI_SSN_PC;
- msc->msc_con->g_called_addr.pc = 1;
+ osmo_sccp_make_addr_pc_ssn(&msc->msc_con->g_calling_addr,
+ 42, SCCP_SSN_BSSAP);
+ osmo_sccp_make_addr_pc_ssn(&msc->msc_con->g_called_addr,
+ 1, SCCP_SSN_BSSAP);
}
// if (osmo_bsc_sccp_init(bsc_gsmnet) != 0) {