Change in osmo-uecups[master]: move VTY and SCTP UECUPS sockets to port 4268

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Apr 17 10:54:03 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-uecups/+/17841 )


Change subject: move VTY and SCTP UECUPS sockets to port 4268
......................................................................

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
---
M daemon/internal.h
M daemon/main.c
M ttcn3/UECUPS_Types.ttcn
3 files changed, 10 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/41/17841/1

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 @@
  * 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 @@
  * 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 @@
 	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 @@
 		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 @@
 import from General_Types all;
 import from Osmocom_Types all;
 
+const integer UECUPS_SCTP_PORT := 4268;
+
 type enumerated UECUPS_AddrType {
 	IPV4	(1),
 	IPV6	(2)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-uecups/+/17841
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: Ifd8a9418184147e1bb3d74192167207c981453de
Gerrit-Change-Number: 17841
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200417/dfd496bc/attachment.htm>


More information about the gerrit-log mailing list