aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-04-17 12:52:40 +0200
committerHarald Welte <laforge@osmocom.org>2020-04-17 15:08:06 +0200
commit432a130e39a41cafdf34388555e5f5c55be8ee4f (patch)
tree1e34269b75657fd9a934bd001e23afce9429b05c
parent7dadaa921f2468fca7e5eb931a7f3e6742d384cb (diff)
move VTY and SCTP UECUPS sockets to port 4268
This is the port number listed on http://osmocom.org/projects/cellular-infrastructure/wiki/Port_Numbers Change-Id: Ifd8a9418184147e1bb3d74192167207c981453de
-rw-r--r--daemon/internal.h2
-rw-r--r--daemon/main.c8
-rw-r--r--ttcn3/UECUPS_Types.ttcn2
3 files changed, 10 insertions, 2 deletions
diff --git a/daemon/internal.h b/daemon/internal.h
index cbccbfc..f0e1382 100644
--- a/daemon/internal.h
+++ b/daemon/internal.h
@@ -200,6 +200,8 @@ bool gtp_tunnel_destroy(struct gtp_daemon *d, const struct sockaddr_storage *bin
* GTP Daemon
***********************************************************************/
+#define UECUPS_SCTP_PORT 4268
+
struct gtp_daemon {
/* global lists of various objects */
struct llist_head gtp_endpoints;
diff --git a/daemon/main.c b/daemon/main.c
index 2375877..c49b771 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -421,6 +421,10 @@ static int cups_accept_cb(struct osmo_stream_srv_link *link, int fd)
* GTP Daemon
***********************************************************************/
+#ifndef OSMO_VTY_PORT_UECUPS
+#define OSMO_VTY_PORT_UECUPS 4268
+#endif
+
struct gtp_daemon *g_daemon;
static int g_daemonize;
static char *g_config_file = "osmo-gtpu-daemon.cfg";
@@ -441,7 +445,7 @@ static struct gtp_daemon *gtp_daemon_alloc(void *ctx)
INIT_LLIST_HEAD(&d->cups_clients);
d->cfg.cups_local_ip = talloc_strdup(d, "localhost");
- d->cfg.cups_local_port = 4300;
+ d->cfg.cups_local_port = UECUPS_SCTP_PORT;
return d;
}
@@ -504,7 +508,7 @@ int main(int argc, char **argv)
exit(2);
}
- rc = telnet_init_dynif(ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_GGSN);
+ rc = telnet_init_dynif(ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_UECUPS);
if (rc < 0)
exit(1);
diff --git a/ttcn3/UECUPS_Types.ttcn b/ttcn3/UECUPS_Types.ttcn
index 8c00090..3699dee 100644
--- a/ttcn3/UECUPS_Types.ttcn
+++ b/ttcn3/UECUPS_Types.ttcn
@@ -3,6 +3,8 @@ module UECUPS_Types {
import from General_Types all;
import from Osmocom_Types all;
+const integer UECUPS_SCTP_PORT := 4268;
+
type enumerated UECUPS_AddrType {
IPV4 (1),
IPV6 (2)