aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-13 20:22:36 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-25 21:06:03 +0200
commitc16c2dc5d35bce659cf4c9ab542054c9b57517aa (patch)
treeab12a2835de5e3ba7ede47c8acbf8fa876b72312 /openbsc/src/nat/bsc_nat.c
parent64b12924bfacaacda4eb5657ab6348a86db48753 (diff)
nat: Implement accepting a USSD Provider connection, do authentication
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 515278cba..fb4c1507c 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -1279,6 +1279,12 @@ int main(int argc, char **argv)
exit(1);
}
+ rc = bsc_ussd_init(nat);
+ if (rc != 0) {
+ LOGP(DNAT, LOGL_ERROR, "Failed to bind the USSD socket.\n");
+ exit(1);
+ }
+
signal(SIGABRT, &signal_handler);
signal(SIGUSR1, &signal_handler);
signal(SIGPIPE, SIG_IGN);