diff options
Diffstat (limited to 'src/gprs/sgsn_main.c')
-rw-r--r-- | src/gprs/sgsn_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c index d56af0ed4..25ee632cc 100644 --- a/src/gprs/sgsn_main.c +++ b/src/gprs/sgsn_main.c @@ -58,7 +58,6 @@ #include <openbsc/sgsn.h> #include <openbsc/gprs_llc.h> #include <openbsc/gprs_gmm.h> -#include <openbsc/iu.h> #include <osmocom/ctrl/control_if.h> #include <osmocom/ctrl/ports.h> @@ -69,6 +68,10 @@ #include "../../bscconfig.h" +#if BUILD_IU +#include <osmocom/ranap/iu_client.h> +#endif + #define _GNU_SOURCE #include <getopt.h> @@ -322,7 +325,7 @@ static const struct log_info gprs_log_info = { .num_cat = ARRAY_SIZE(gprs_categories), }; -int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, enum iu_event_type type, void *data); +int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, enum ranap_iu_event_type type, void *data); int main(int argc, char **argv) { @@ -451,7 +454,7 @@ int main(int argc, char **argv) return 8; } - iu_init(tall_bsc_ctx, sccp, gsm0408_gprs_rcvmsg_iu, sgsn_ranap_iu_event); + ranap_iu_init(tall_bsc_ctx, DRANAP, "OsmoSGSN-IuPS", sccp, gsm0408_gprs_rcvmsg_iu, sgsn_ranap_iu_event); #endif if (daemonize) { |