From a9a7120c82f571554e6c1417eec0803f15e6c7bb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 20 Jan 2016 23:34:43 +0100 Subject: 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. --- include/osmo-bts/pcu_if.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/osmo-bts/pcu_if.h') 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 */ -- cgit v1.2.3