aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap/common.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-21 11:55:04 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-21 15:18:02 +0200
commit2aea8704f391675a704d0431497cf0100ca76b9a (patch)
tree53f9cece7765b0eea981a0d25b5d53a99705589c /include/osmo-pcap/common.h
parent604e0711596e7e06600a2d7aea3394d36e5d3bda (diff)
Use TCP port numbers for VTY that don't overlap with other Osmocom Software
osmo-pcap for historical reasons uses the same port numbers as OsmoPCU and OsmoBTS. This leads to problems when wanting to run related software together on one system. Let's break the historical assumptions and start with non-overlapping port numbers that are allocated/assigned from https://osmocom.org/projects/cellular-infrastructure/wiki/Port_Numbers Change-Id: I638ac0534517931d0987ce9f72f5db4f5b6c16b7
Diffstat (limited to 'include/osmo-pcap/common.h')
-rw-r--r--include/osmo-pcap/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmo-pcap/common.h b/include/osmo-pcap/common.h
index 13c76e1..27fd514 100644
--- a/include/osmo-pcap/common.h
+++ b/include/osmo-pcap/common.h
@@ -28,6 +28,15 @@
#include <osmocom/vty/vty.h>
#include <osmocom/vty/buffer.h>
#include <osmocom/vty/command.h>
+#include <osmocom/vty/ports.h>
+
+/* support old versions of libosmocore */
+#ifndef OSMO_VTY_PORT_PCAP_CLIENT
+#define OSMO_VTY_PORT_PCAP_CLIENT 4237
+#endif
+#ifndef OSMO_VTY_PORT_PCAP_SERVER
+#define OSMO_VTY_PORT_PCAP_SERVER 4238
+#endif
enum {
DPCAP,