aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy_main.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-19 15:09:09 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-19 15:09:09 +0200
commitff3bde8b49ef7cf530c535c99e5960dd5b8871cf (patch)
treec55e020e7a5160984360f2bac537fa7ded7e25dd /openbsc/src/gprs/gb_proxy_main.c
parent5540c4cbd32f9b69f72adb622c3635e841724131 (diff)
[GPRS] NS: VTY: Move all local ip/port bind values into 'ns' node
This removes the requirement for gb_proxy and sgsn to have duplicate vty parsing code
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_main.c')
-rw-r--r--openbsc/src/gprs/gb_proxy_main.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c
index 1b39a2e72..71d608609 100644
--- a/openbsc/src/gprs/gb_proxy_main.c
+++ b/openbsc/src/gprs/gb_proxy_main.c
@@ -238,20 +238,17 @@ int main(int argc, char **argv)
exit(2);
}
- rc = nsip_listen(bssgp_nsi, gbcfg.nsip_listen_ip,
- gbcfg.nsip_listen_port);
+ rc = gprs_ns_nsip_listen(bssgp_nsi);
if (rc < 0) {
LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen on NSIP socket\n");
exit(2);
}
- if (gbcfg.frgre_enabled) {
- rc = gprs_ns_frgre_listen(bssgp_nsi, gbcfg.nsip_listen_ip);
- if (rc < 0) {
- LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen GRE "
- "socket. Do you have CAP_NET_RAW?\n");
- exit(2);
- }
+ rc = gprs_ns_frgre_listen(bssgp_nsi);
+ if (rc < 0) {
+ LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen GRE "
+ "socket. Do you have CAP_NET_RAW?\n");
+ exit(2);
}
/* Reset all the persistent NS-VCs that we've read from the config */