aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-10-24 15:29:09 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-02-07 18:59:53 +0300
commit924292977fc4d8231643dee8d1fc36ee40670073 (patch)
treed94ddfb07e209a5f7ac1f281db6592edd200a0de /openbsc/src/osmo-nitb
parenta317e334c23fe8c65b3a5147bb6eefa2911a2e6b (diff)
libmsc: Remove sup_init() to make SUP socket initialiaton generic.
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index 55263d2b6..a7754f2c7 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -368,13 +368,15 @@ int main(int argc, char **argv)
}
printf("DB: Database prepared.\n");
- //if (bsc_gsmnet->auth_policy == GSM_AUTH_POLICY_REMOTE) {
- rc = sup_init(bsc_gsmnet);
- if (rc < 0) {
+ if (bsc_gsmnet->auth_policy == GSM_AUTH_POLICY_REMOTE) {
+ bsc_gsmnet->hlr_sup_client = gprs_gsup_client_create(
+ "127.0.0.1", 8183,
+ &sup_read_cb);
+ if (!bsc_gsmnet->hlr_sup_client) {
LOGP(DSUP, LOGL_FATAL, "Cannot set up subscriber management\n");
exit(2);
}
- //}
+ }
/* setup the timer */
db_sync_timer.cb = db_sync_timer_cb;