aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-20 23:34:43 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-15 14:27:52 +0100
commita9a7120c82f571554e6c1417eec0803f15e6c7bb (patch)
treefcfd92dd0f13f9edacc7ff8a22f45bbe264213d9 /include
parent5dfb115eaf16a5c5e9ccea5b03374651aa97da11 (diff)
make PCU socket and telnet port configurable
In some cases we'd like to run multiple instances of osmo-bts on a single machine. This is the case where we a multi-TRX PHY is to be used for several BTSs, or in case osmo-bts-trx has multple SDRs attached. This wa currently prevented by having a hard-coded PCU socket path and telnet port, which are now configurable via VTY / config file itself.
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/gsm_data.h4
-rw-r--r--include/osmo-bts/pcu_if.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index c4953cbb..7a486670 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -107,6 +107,10 @@ struct gsm_bts_role_bts {
float min_qual_rach; /* minimum quality for RACH bursts */
float min_qual_norm; /* minimum quality for normal daata */
+
+ struct {
+ char *sock_path;
+ } pcu;
};
enum lchan_ciph_state {
diff --git a/include/osmo-bts/pcu_if.h b/include/osmo-bts/pcu_if.h
index 71738445..0c4fb696 100644
--- a/include/osmo-bts/pcu_if.h
+++ b/include/osmo-bts/pcu_if.h
@@ -1,6 +1,8 @@
#ifndef _PCU_IF_H
#define _PCU_IF_H
+#define PCU_SOCK_DEFAULT "/tmp/pcu_bts"
+
extern int pcu_direct;
int pcu_tx_info_ind(void);
@@ -14,7 +16,7 @@ int pcu_tx_time_ind(uint32_t fn);
int pcu_tx_pag_req(const uint8_t *identity_lv, uint8_t chan_needed);
int pcu_tx_pch_data_cnf(uint32_t fn, uint8_t *data, uint8_t len);
-int pcu_sock_init(void);
+int pcu_sock_init(const char *path);
void pcu_sock_exit(void);
#endif /* _PCU_IF_H */