diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-12 15:55:23 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-12 18:28:00 +0200 |
commit | 1194b584beb70b7c1ab30fa047f3af31bb3ea0ad (patch) | |
tree | 8e146d0ff9aea2558d40a5dd0f07c0b6c6d807d8 /openbsc/src/gprs/gb_proxy_main.c | |
parent | f6d67c04ee2872777a8d497103cf9f0989f5d16d (diff) |
NS: Add support for persistent NS-VC configuration
With persistent NS-VC configuration (configured through VTY),
we can respond properly to BSS with a somewhat strange NS
implementation Such as the BSplus. It enables us to respond
with a proper NS-RESET (including NSVCI/NSEI) when receiving
a NS-ALIVE or other PDU for a BLOCKED/DEAD NS-VC after our
end of the connection is rebooted.
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_main.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c index 7aeb5e41b..510abd09d 100644 --- a/openbsc/src/gprs/gb_proxy_main.c +++ b/openbsc/src/gprs/gb_proxy_main.c @@ -105,11 +105,6 @@ int main(int argc, char **argv) log_set_all_filter(stderr_target, 1); telnet_init(&dummy_network, 4246); - rc = gbproxy_parse_config(config_file, &gbcfg); - if (rc < 0) { - LOGP(DGPRS, LOGL_FATAL, "Cannot parse config file\n"); - exit(2); - } bssgp_nsi = gprs_ns_instantiate(&proxy_ns_cb); if (!bssgp_nsi) { @@ -117,7 +112,15 @@ int main(int argc, char **argv) exit(1); } gbcfg.nsi = bssgp_nsi; + gprs_ns_vty_init(bssgp_nsi); register_signal_handler(SS_NS, &gbprox_signal, NULL); + + rc = gbproxy_parse_config(config_file, &gbcfg); + if (rc < 0) { + LOGP(DGPRS, LOGL_FATAL, "Cannot parse config file\n"); + exit(2); + } + nsip_listen(bssgp_nsi, gbcfg.nsip_listen_port); /* 'establish' the outgoing connection to the SGSN */ |