diff options
-rw-r--r-- | daemon/internal.h | 2 | ||||
-rw-r--r-- | daemon/main.c | 8 | ||||
-rw-r--r-- | ttcn3/UECUPS_Types.ttcn | 2 |
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) |