aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_nat.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-24 17:54:49 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-24 17:54:49 +0200
commit55dc31e7812fec9ab9f013702cdfd2203a778071 (patch)
treebf6a26fd4ccff7709ae386ef32c985a393f75e7d /openbsc/src/osmo-bsc_nat/bsc_nat.c
parent6e688082476310be0192a17440a3432bcbb7128e (diff)
Use port number #defines for VTY and CTRL ports
.. as defined in libosmocore
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat.c')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index e66eb08f6..dcc30ca8c 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -57,6 +57,7 @@
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/ports.h>
#include <osmocom/sccp/sccp.h>
@@ -1534,7 +1535,7 @@ int main(int argc, char **argv)
rate_ctr_init(tall_bsc_ctx);
/* init vty and parse */
- telnet_init(tall_bsc_ctx, NULL, 4244);
+ telnet_init(tall_bsc_ctx, NULL, OSMO_VTY_PORT_BSC_NAT);
if (mgcp_parse_config(config_file, nat->mgcp_cfg, MGCP_BSC_NAT) < 0) {
fprintf(stderr, "Failed to parse the config file: '%s'\n", config_file);
return -3;