From 61329d45b8560c2575ed51074fa59958ccb1deed Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sat, 21 May 2016 17:36:18 +0200 Subject: IuPS: redirect Iu in various places, link Iu in sgsn-test In gsm48_gmm_sendmsg(), redirect to iu_tx() for both cases of MM context present or not. In gsm48_rx_gmm_att_req(), compose an MM context marked as Iu for messages coming in from a ue_conn_ctx (passed in msg->dst). Also make sure cid is initialized to avoid introducing a compiler warning. In gsm48_rx_gmm_ra_upd_req(), look up an Iu MM context based on the presence of the ue_conn_ctx in msg->dst. In sgsn-test, add libiu and libasn1c, libosmo-sigtran, libosmo-ranap, which are now needed for an --enable-iu build. Change-Id: Ia47ffbfa6fa0f5a0cd76a379c57ef42faa0d80e3 --- openbsc/tests/sgsn/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbsc/tests') diff --git a/openbsc/tests/sgsn/Makefile.am b/openbsc/tests/sgsn/Makefile.am index 74af15991..ce644299e 100644 --- a/openbsc/tests/sgsn/Makefile.am +++ b/openbsc/tests/sgsn/Makefile.am @@ -1,5 +1,8 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS) +if BUILD_IU +AM_CFLAGS += $(LIBASN1C_CFLAGS) $(LIBOSMOSIGTRAN_CFLAGS) $(LIBOSMORANAP_CFLAGS) +endif EXTRA_DIST = sgsn_test.ok @@ -39,4 +42,11 @@ sgsn_test_LDADD = \ $(LIBCARES_LIBS) \ $(LIBCRYPTO_LIBS) \ -lgtp -lrt +if BUILD_IU +sgsn_test_LDADD += \ + $(top_builddir)/src/libiu/libiu.a \ + $(LIBOSMORANAP_LIBS) \ + $(LIBOSMOSIGTRAN_LIBS) \ + $(LIBASN1C_LIBS) +endif -- cgit v1.2.3