diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-30 02:53:14 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-31 04:09:38 +0800 |
commit | 30e1ae923db16c480cf210a29c8befa57a69202b (patch) | |
tree | fc64d6d9e4b4b7e3bb5b5e798ed284a2206b821f /openbsc/src/nat | |
parent | c44db4a5341c1c86de784bb74d4dbd2063a4c010 (diff) |
sccp: Use the external libosmo-sccp as sccp implementation
Add --enable-nat and --enable-osmo-bsc to build applications
requiring the Osmo SCCP library to be installed. We are not
using autodiscover as this is out of fashion.
Diffstat (limited to 'openbsc/src/nat')
-rw-r--r-- | openbsc/src/nat/Makefile.am | 6 | ||||
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/nat/Makefile.am b/openbsc/src/nat/Makefile.am index 0ca3bdfc2..2f37f5cd2 100644 --- a/openbsc/src/nat/Makefile.am +++ b/openbsc/src/nat/Makefile.am @@ -1,5 +1,5 @@ INCLUDES = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir) -AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) +AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMOSCCP_CFLAGS) AM_LDFLAGS = $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) bin_PROGRAMS = bsc_nat @@ -8,6 +8,6 @@ bin_PROGRAMS = bsc_nat bsc_nat_SOURCES = bsc_filter.c bsc_mgcp_utils.c bsc_nat.c bsc_nat_utils.c \ bsc_nat_vty.c bsc_sccp.c \ $(top_srcdir)/src/debug.c $(top_srcdir)/src/bsc_msc.c -bsc_nat_LDADD = $(top_builddir)/src/libvty.a $(top_builddir)/src/libsccp.a \ +bsc_nat_LDADD = $(top_builddir)/src/libvty.a \ $(top_builddir)/src/libmgcp.a $(top_builddir)/src/libbsc.a \ - -lrt + -lrt $(LIBOSMOSCCP_LIBS) diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 538472ac2..0a3719341 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -1178,6 +1178,7 @@ int main(int argc, char** argv) signal(SIGPIPE, SIG_IGN); /* recycle timer */ + sccp_set_log_area(DSCCP); sccp_close.cb = sccp_close_unconfirmed; sccp_close.data = NULL; bsc_schedule_timer(&sccp_close, SCCP_CLOSE_TIME, 0); |